1 | <?php |
||
19 | class BadgeCount implements Model |
||
20 | { |
||
21 | protected $bronze; |
||
22 | protected $gold; |
||
23 | protected $silver; |
||
24 | |||
25 | public static function fromJson(array $data) |
||
35 | |||
36 | public static function fromProperties($bronze, $gold, $silver) |
||
46 | |||
47 | public function getBronze() |
||
51 | |||
52 | public function setBronze($bronze) |
||
58 | |||
59 | public function getGold() |
||
63 | |||
64 | public function setGold($gold) |
||
70 | |||
71 | public function getSilver() |
||
75 | |||
76 | public function setSilver($silver) |
||
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.