1 | <?php |
||
6 | class Country |
||
7 | { |
||
8 | public $name; |
||
9 | public $code; |
||
10 | public $slug; |
||
11 | protected $countryData; |
||
12 | |||
13 | /** |
||
14 | * Creates a new instance |
||
15 | * |
||
16 | * @param array $countryData Popolo country data |
||
17 | */ |
||
18 | 51 | public function __construct($countryData) |
|
26 | |||
27 | /** |
||
28 | * String representation of {@link Country} |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | 6 | public function __toString() |
|
36 | |||
37 | /** |
||
38 | * Return all the {@link Legislature}s known for this {@link Country} |
||
39 | * |
||
40 | * A {@link Legislature} is a chamber of a parliament, e.g. the House of |
||
41 | * Commons in the UK. |
||
42 | * |
||
43 | * @return Legislature[] |
||
44 | */ |
||
45 | 27 | public function legislatures() |
|
54 | /** |
||
55 | * Return a {@link Legislature} in this {@link Country} from its slug |
||
56 | * |
||
57 | * @param string $legislatureSlug slug identifying a legislature |
||
58 | * |
||
59 | * @return Legislature |
||
60 | */ |
||
61 | 15 | public function legislature($legislatureSlug) |
|
70 | } |
||
71 |