code: public function getDirective($name)
      {
          foreach ($this->getDirectives() as $directive) {
              if ($directive->name === $name) {
                  return $directive;
              }
          }
  
          return null;
      }
docs: Returns instance of directive by name
  
  @param string $name
  
  @return Directive
  
  @api