| 1 | <?php |
||
| 22 | class CommunesResponse extends AbstractResponse { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Communes. |
||
| 26 | * |
||
| 27 | * @var Commune[] |
||
| 28 | */ |
||
| 29 | private $communes; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Constructor. |
||
| 33 | */ |
||
| 34 | public function __construct() { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Add a commune. |
||
| 40 | * |
||
| 41 | * @param Commune $commune The commune. |
||
| 42 | * @return CommunesResponse Returns this communes response. |
||
| 43 | */ |
||
| 44 | public function addCommune(Commune $commune): CommunesResponse { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get the communes. |
||
| 51 | * |
||
| 52 | * @return Commune[] Returns the communes. |
||
| 53 | */ |
||
| 54 | public function getCommunes(): array { |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Set the communes. |
||
| 60 | * |
||
| 61 | * @param Commune[] $communes The communes. |
||
| 62 | * @return CommunesResponse Returns this communes response. |
||
| 63 | */ |
||
| 64 | protected function setCommunes(array $communes): CommunesResponse { |
||
| 68 | } |