public function __toString() { $args = parent::__toString(); if (strlen($args) > 0) { $args = "?{$args}"; } return $this->path() . $args; }