40 lines
798 B
PHP
40 lines
798 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace PrintNode;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* PrintJob
|
||
|
|
*
|
||
|
|
* Object representing a PrintJob in PrintNode API
|
||
|
|
*
|
||
|
|
* @property-read int $id
|
||
|
|
* @property Printer $printer
|
||
|
|
* @property string $title
|
||
|
|
* @property string $contentType
|
||
|
|
* @property string $content
|
||
|
|
* @property string $source
|
||
|
|
* @property-read int $filesize
|
||
|
|
* @property-read DateTime $createTimestamp
|
||
|
|
* @property-read string $state
|
||
|
|
*/
|
||
|
|
class PrintJob extends Entity
|
||
|
|
{
|
||
|
|
protected $id;
|
||
|
|
protected $printer;
|
||
|
|
protected $title;
|
||
|
|
protected $contentType;
|
||
|
|
protected $content;
|
||
|
|
protected $source;
|
||
|
|
protected $filesize;
|
||
|
|
protected $createTimestamp;
|
||
|
|
protected $state;
|
||
|
|
protected $expireAt;
|
||
|
|
|
||
|
|
public function foreignKeyEntityMap()
|
||
|
|
{
|
||
|
|
return array(
|
||
|
|
'printer' => 'PrintNode\Printer'
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|