1 | <?php |
||
39 | class OcrJob extends Entity implements JsonSerializable { |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $status; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $source; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $target; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | protected $tempFile; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $type; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | */ |
||
69 | protected $userId; |
||
70 | |||
71 | |||
72 | /** |
||
73 | * @var boolean |
||
74 | */ |
||
75 | protected $errorDisplayed; |
||
76 | |||
77 | /** |
||
78 | * |
||
79 | * @var string |
||
80 | */ |
||
81 | protected $originalFilename; |
||
82 | |||
83 | /** |
||
84 | * |
||
85 | * @var string |
||
86 | */ |
||
87 | protected $errorLog; |
||
88 | |||
89 | /** |
||
90 | * OcrJob constructor. |
||
91 | * |
||
92 | * @param string $status |
||
93 | * @param string $source |
||
94 | * @param string $target |
||
95 | * @param string $tempFile |
||
96 | * @param string $type |
||
97 | * @param string $userId |
||
98 | * @param boolean $errorDisplayed |
||
99 | * @param string $originalFilename |
||
100 | * @param string $errorLog |
||
101 | */ |
||
102 | public function __construct($status = null, $source = null, $target = null, $tempFile = null, $type = null, $userId = null, $errorDisplayed = null, $originalFilename = null, $errorLog= null) { |
||
113 | |||
114 | /** |
||
115 | * Specify data which should be serialized to JSON |
||
116 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
117 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
118 | * which is a value of any type other than a resource. |
||
119 | * @since 5.4.0 |
||
120 | */ |
||
121 | function jsonSerialize() |
||
136 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.