| 1 | <?php |
||
| 5 | class DnsSeedList |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | private $seeds = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * DnsSeedList constructor. |
||
| 14 | * @param array $seeds |
||
| 15 | */ |
||
| 16 | 33 | public function __construct(array $seeds) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $host |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | 3 | public function addHost($host) |
|
| 26 | { |
||
| 27 | 3 | $this->seeds[] = $host; |
|
| 28 | 3 | return $this; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 15 | public function getHosts() |
|
| 38 | } |
||
| 39 |