| 1 | <?php |
||
| 6 | class Country |
||
| 7 | { |
||
| 8 | public $name; |
||
| 9 | public $code; |
||
| 10 | public $slug; |
||
| 11 | protected $countryData; |
||
| 12 | |||
| 13 | 27 | public function __construct($countryData) |
|
| 21 | |||
| 22 | 3 | public function __toString() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Return all the legislatures known for this country |
||
| 29 | * |
||
| 30 | * A legislature is a chamber of a parliament, e.g. the House of |
||
| 31 | * Commons in the UK. |
||
| 32 | */ |
||
| 33 | 6 | public function legislatures() |
|
| 42 | |||
| 43 | 6 | public function legislature($legislatureSlug) |
|
| 52 | } |
||
| 53 |