public function getDeviceAdapter() { if (!isset($this->deviceAdapter)) { return null; } return $this->deviceAdapter; }