code: public function get(string $name): string
      {
          if (!$this->has($name)) {
              throw new DirectoryException("Undefined directory '{$name}'");
          }
  
          return $this->directories[$name];
      }
docs: {@inheritdoc}