code: public static function fromArray(array $url): self
      {
          return new self(
              isset($url['host']) ? $url['host'] : '',
              isset($url['namespace']) ? $url['namespace'] : '',
              isset($url['name']) ? $url['name'] : ''
          );
      }
docs: Create a URL from an array.
  
  @param array $url
  @return Url