/** * @param Device $device */ public function register(DeviceInterface $device) { $this->container[$device->getHandle()] = $device; }
public function hasDevice(DeviceInterface $device) { return array_key_exists($device->getRegistrationId(), $this->deviceMap); }