37 lines
754 B
PHP
Executable File
37 lines
754 B
PHP
Executable File
<?php
|
|
|
|
namespace PrintNode;
|
|
|
|
/**
|
|
* Printer
|
|
*
|
|
* Object representing a Printer in PrintNode API
|
|
*
|
|
* @property-read int $id
|
|
* @property-read Computer $computer
|
|
* @property-read string $name
|
|
* @property-read string $description
|
|
* @property-read object $capabilities
|
|
* @property-read boolean $default
|
|
* @property-read DateTime $createTimestamp
|
|
* @property-read string $state
|
|
*/
|
|
class Printer extends Entity
|
|
{
|
|
protected $id;
|
|
protected $computer;
|
|
protected $name;
|
|
protected $description;
|
|
protected $capabilities;
|
|
protected $default;
|
|
protected $createTimestamp;
|
|
protected $state;
|
|
|
|
public function foreignKeyEntityMap()
|
|
{
|
|
return array(
|
|
'computer' => 'PrintNode\Computer'
|
|
);
|
|
}
|
|
}
|