ApiGen\Configuration\Configuration::getOption PHP Метод

getOption() публичный метод

public getOption ( $name )
    public function getOption($name)
    {
        if (isset($this->getOptions()[$name])) {
            return $this->getOptions()[$name];
        }
        return null;
    }

Usage Example

 public function generate()
 {
     $annotations = $this->configuration->getOption(CO::ANNOTATION_GROUPS);
     foreach ($annotations as $annotation) {
         $template = $this->templateFactory->createNamedForElement(TemplateFactory::ELEMENT_ANNOTATION_GROUP, $annotation);
         $template = $this->setElementsWithAnnotationToTemplate($template, $annotation);
         $template->save();
     }
 }
All Usage Examples Of ApiGen\Configuration\Configuration::getOption