1 | <?php |
||
19 | class Error implements Model |
||
20 | { |
||
21 | protected $id; |
||
22 | protected $name; |
||
23 | protected $description; |
||
24 | |||
25 | public static function fromJson(array $data) |
||
35 | |||
36 | public static function fromProperties($id, $name, $description) |
||
46 | |||
47 | public function getId() |
||
51 | |||
52 | public function setId($id) |
||
58 | |||
59 | public function getName() |
||
63 | |||
64 | public function setName($name) |
||
70 | |||
71 | public function getDescription() |
||
75 | |||
76 | public function setDescription($description) |
||
82 | } |
||
83 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.