public function __construct(\DateTimeInterface $date) { parent::__construct($date->format(\DateTime::RFC1123)); }
public function __construct(UrlHost $host, PortInterface $port) { $this->host = $host; $this->port = $port; parent::__construct($host . (!$port instanceof NullPort ? ':' . $port : '')); }