1 | <?php |
||
7 | class ApiErrorItem extends AbstractBaseItem |
||
8 | { |
||
9 | /** |
||
10 | * HTTP code |
||
11 | * |
||
12 | * @var int |
||
13 | */ |
||
14 | public $code; |
||
15 | |||
16 | /** |
||
17 | * Short error title |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | public $title; |
||
22 | |||
23 | /** |
||
24 | * More details about error |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | public $details; |
||
29 | |||
30 | /** |
||
31 | * @param array|mixed $raw |
||
32 | * @return ApiErrorItem |
||
33 | */ |
||
34 | static function fromArray($raw) |
||
46 | } |
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.