duncan3dc\Sonos\Device::getModel PHP Метод

getModel() публичный Метод

Get the model of this device.
public getModel ( ) : string
Результат string
    public function getModel()
    {
        if ($this->model === null) {
            $parser = $this->getXml("/xml/device_description.xml");
            if ($device = $parser->getTag("device")) {
                $this->model = (string) $device->getTag("modelNumber");
            }
            if (!is_string($this->model) || strlen($this->model) === 0) {
                $this->model = "UNKNOWN";
            }
            $this->logger->debug("{$this->ip} model: {$this->model}");
        }
        return $this->model;
    }