for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BitWasp\Bitcoin\Networking\DnsSeeds;
class DnsSeedList
{
/**
* @var array
*/
private $seeds = [];
* DnsSeedList constructor.
* @param array $seeds
public function __construct(array $seeds)
$this->seeds = $seeds;
}
* @param string $host
* @return $this
public function addHost($host)
$this->seeds[] = $host;
return $this;
* @return array
public function getHosts()
return $this->seeds;