public function createRequiredFromTemplates($templates)
    {
        $parameters = [];
        if (!empty($templates)) {
            foreach ($templates as $template) {
                if ($template->required) {
                    $parameters[] = $this->createFromTemplate($template);
                }
            }
        }
        return $parameters;
    }
public function createRequiredFromTemplates($templates)
    {
        $parameters = [];
        if (!empty($templates)) {
            foreach ($templates as $template) {
                if ($template->required) {
                    $parameters[] = $this->createFromTemplate($template);
                }
            }
        }
        return $parameters;
    }
public function createRequiredFromTemplates ( $ templates ) { $ parameters = [ ] ; if ( ! empty ( $ templates ) ) { foreach ( $ templates as $ template ) { if ( $ template -> required ) { $ parameters [ ] = $ this -> createFromTemplate ( $ template ) ; } } } return $ parameters ; }
Create GroupParameter instances from all given required templates.

@param \stdClass[] $templates
@return GroupParameter[]
Create GroupParameter instances from all given required templates .