/** * {@inheritdoc} */ public function filterHost(callable $callable, $flag = Url\Interfaces\Collection::FILTER_USE_VALUE) { return $this->withProperty('host', $this->host->filter($callable, $flag)); }
/** * Format a League\Url\Interfaces\Host according to the Formatter properties * * @param Interfaces\Host $host * * @return string */ protected function formatHost(Interfaces\Host $host) { if (self::HOST_AS_ASCII == $this->hostEncoding) { return $host->__toString(); } return $host->toUnicode(); }