function __construct($host = null, $port = 80) { if (null !== $host) { $this->setHost($host); } $this->setPort($port); }