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