1 | <?php |
||
8 | class Legislature |
||
9 | { |
||
10 | public $name; |
||
11 | public $slug; |
||
12 | public $personCount; |
||
13 | public $sha; |
||
14 | public $statementCount; |
||
15 | public $popoloUrl; |
||
16 | public $lastmod; |
||
17 | protected $legislatureData; |
||
18 | protected $country; |
||
19 | |||
20 | /** |
||
21 | * Creates a new instance |
||
22 | * |
||
23 | * @param array $legislatureData Popolo legislature data |
||
24 | * @param Country @country country for this legislature |
||
25 | */ |
||
26 | 27 | public function __construct($legislatureData, $country) |
|
44 | |||
45 | /** |
||
46 | * String representation of {@link Legislature} |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | 3 | public function __toString() |
|
54 | |||
55 | /** |
||
56 | * Return the directory path in the everypolitician-data repository |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | 3 | public function directory() |
|
66 | |||
67 | /** |
||
68 | * Return a Popolo instance for this {@link Legislature} |
||
69 | * |
||
70 | * @return Popolo |
||
71 | */ |
||
72 | public function popolo() |
||
76 | |||
77 | /** |
||
78 | * Return all the known legislative periods for this legislature |
||
79 | * |
||
80 | * @return LegislativePeriod[] |
||
81 | */ |
||
82 | 9 | public function legislativePeriods() |
|
90 | } |
||
91 |