original_string: protected function getHardware(): Obj
  	{
  		$hardware = new Obj;
  
  		$product = $this->readFile('/sys/devices/virtual/dmi/id/product_name');
  		$board = $this->readFile('/sys/devices/virtual/dmi/id/board_name');
  		$bios = $this->readFile('/sys/devices/virtual/dmi/id/bios_version');
  		$biosDate = $this->readFile('/sys/devices/virtual/dmi/id/bios_date');
  
  		$hardware->server = $product
  			. ($board ? '/' . $board : null)
  			. ($bios ? ', BIOS ' . $bios : null)
  			. ($biosDate ? ' ' . $biosDate : null);
  		$hardware->cpu = $this->getCpu();
  		$hardware->scsi = $this->getScsi();
  
  		$hardware->data = !empty($hardware->server) || !empty($hardware->cpu) || !empty($hardware->scsi);
  
  		return $hardware;
  	}
code: protected function getHardware(): Obj
  	{
  		$hardware = new Obj;
  
  		$product = $this->readFile('/sys/devices/virtual/dmi/id/product_name');
  		$board = $this->readFile('/sys/devices/virtual/dmi/id/board_name');
  		$bios = $this->readFile('/sys/devices/virtual/dmi/id/bios_version');
  		$biosDate = $this->readFile('/sys/devices/virtual/dmi/id/bios_date');
  
  		$hardware->server = $product
  			. ($board ? '/' . $board : null)
  			. ($bios ? ', BIOS ' . $bios : null)
  			. ($biosDate ? ' ' . $biosDate : null);
  		$hardware->cpu = $this->getCpu();
  		$hardware->scsi = $this->getScsi();
  
  		$hardware->data = !empty($hardware->server) || !empty($hardware->cpu) || !empty($hardware->scsi);
  
  		return $hardware;
  	}
code_tokens: protected function getHardware ( ) : Obj { $ hardware = new Obj ; $ product = $ this -> readFile ( '/sys/devices/virtual/dmi/id/product_name' ) ; $ board = $ this -> readFile ( '/sys/devices/virtual/dmi/id/board_name' ) ; $ bios = $ this -> readFile ( '/sys/devices/virtual/dmi/id/bios_version' ) ; $ biosDate = $ this -> readFile ( '/sys/devices/virtual/dmi/id/bios_date' ) ; $ hardware -> server = $ product . ( $ board ? '/' . $ board : null ) . ( $ bios ? ', BIOS ' . $ bios : null ) . ( $ biosDate ? ' ' . $ biosDate : null ) ; $ hardware -> cpu = $ this -> getCpu ( ) ; $ hardware -> scsi = $ this -> getScsi ( ) ; $ hardware -> data = ! empty ( $ hardware -> server ) || ! empty ( $ hardware -> cpu ) || ! empty ( $ hardware -> scsi ) ; return $ hardware ; }
docstring: Vrati informace o hardware
  @return Obj
docstring_tokens: Vrati informace o hardware