1 | <?php |
||
39 | class OcrJob extends Entity implements JsonSerializable { |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $status; |
||
46 | |||
47 | /** |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $source; |
||
52 | |||
53 | /** |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $target; |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @var string |
||
62 | */ |
||
63 | protected $tempFile; |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @var string |
||
68 | */ |
||
69 | protected $type; |
||
70 | |||
71 | /** |
||
72 | * |
||
73 | * @var string |
||
74 | */ |
||
75 | protected $userId; |
||
76 | |||
77 | /** |
||
78 | * |
||
79 | * @var boolean |
||
80 | */ |
||
81 | protected $errorDisplayed; |
||
82 | |||
83 | /** |
||
84 | * |
||
85 | * @var string |
||
86 | */ |
||
87 | protected $originalFilename; |
||
88 | |||
89 | /** |
||
90 | * |
||
91 | * @var string |
||
92 | */ |
||
93 | protected $errorLog; |
||
94 | |||
95 | /** |
||
96 | * OcrJob constructor. |
||
97 | * |
||
98 | * @param string $status |
||
99 | * @param string $source |
||
100 | * @param string $target |
||
101 | * @param string $tempFile |
||
102 | * @param string $type |
||
103 | * @param string $userId |
||
104 | * @param boolean $errorDisplayed |
||
105 | * @param string $originalFilename |
||
106 | * @param string $errorLog |
||
107 | */ |
||
108 | 20 | public function __construct($status = null, $source = null, $target = null, $tempFile = null, $type = null, $userId = null, |
|
120 | |||
121 | /** |
||
122 | * Specify data which should be serialized to JSON |
||
123 | * |
||
124 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
125 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
126 | * which is a value of any type other than a resource. |
||
127 | * @since 5.4.0 |
||
128 | */ |
||
129 | 2 | function jsonSerialize() { |
|
143 | } |
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.