Habari\FormUI::build PHP Метод

build() публичный статический Метод

Create a new instance of this class and return it, use the fluent interface
public static build ( string $name, string $formtype = null, array $extra_data = [] ) : FormUI
$name string The name of the form to build
$formtype string The type of the form
$extra_data array Extra data to pass to the form for configuration purposes
Результат FormUI The instance of the created form
    public static function build($name, $formtype = null, $extra_data = array())
    {
        $class = get_called_class();
        $r_class = new \ReflectionClass($class);
        return $r_class->newInstanceArgs(compact('name', 'formtype', 'extra_data'));
    }