| 1 | <?php |
||
| 4 | class ServerCollection implements \Countable |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @var array |
||
| 8 | */ |
||
| 9 | private $servers; |
||
| 10 | |||
| 11 | 15 | public function __construct() |
|
| 15 | |||
| 16 | /** |
||
| 17 | * @param Server $server |
||
| 18 | */ |
||
| 19 | 5 | public function add(Server $server) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | 11 | public function getServers() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | 1 | public function count() |
|
| 39 | } |
||
| 40 |