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