1 | <?php |
||
7 | class GetStatsResponse extends Model |
||
8 | { |
||
9 | protected $mainStats = null; |
||
10 | |||
11 | protected $mappingClasses = [ |
||
12 | 'mainStats' => 'Yandex\Market\Partner\Models\Stats' |
||
13 | ]; |
||
14 | |||
15 | protected $propNameMap = []; |
||
16 | |||
17 | /** |
||
18 | * @return null |
||
19 | */ |
||
20 | public function getMainStats() |
||
24 | |||
25 | /** |
||
26 | * @param $stats |
||
27 | * @return $this |
||
28 | */ |
||
29 | public function setMainStats($mainStats) |
||
34 | } |
||
35 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: