public function toString()
{
if ($this->hidden) {
return '';
}
if ($this->identified) {
$model = $this->getModel();
$manufacturer = $this->getManufacturer();
if ($manufacturer != '' && strpos($model, $manufacturer) === 0) {
$manufacturer = '';
}
return trim($manufacturer . ' ' . $model);
}
return !empty($this->model) ? 'unrecognized device (' . $this->model . ')' : '';
}