Пример #1
0
 /**
  * @param $device
  * @return bool|\DeviceBundle\Devices\Device
  */
 public function parse($device)
 {
     if (false !== $this->deviceFactory->hasDevice($device->Internals->TYPE)) {
         $deviceClass = $this->deviceFactory->getDevice($device->Internals->TYPE);
         return $deviceClass->parse($device);
     }
     return false;
 }