Former\Form\Group::__construct PHP Метод

__construct() публичный Метод

Creates a group
public __construct ( Illuminate\Container\Container $app, string $label, $validations = null )
$app Illuminate\Container\Container
$label string Its label
    public function __construct(Container $app, $label, $validations = null)
    {
        // Get special classes
        $this->app = $app;
        $this->addClass($this->app['former.framework']->getGroupClasses());
        // Invisible if Nude
        if ($this->app['former.framework']->is('Nude')) {
            $this->element = '';
        }
        // Set group label
        if ($label) {
            $this->setLabel($label);
        }
        // Set validations used to override groups own conclusions
        $this->validations = (array) $validations;
    }