public function isValid() { if (!parent::isValid()) { return false; } return $this->isAbsolute() && $this->getAuthority() !== null || $this->isRelative() && $this->getAuthority() === null; }
public function isValid() { if ($this->scheme === null || $this->getAuthority() !== null) { return false; } return parent::isValid(); }