@param string $name

@return Element\Input\Number
185789
public function addInputNumber(string $name) : Element\Input\Number
    {
        $input = new Element\Input\Number($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
1195765
public function addNumber($name, $label = '', $is_mandatory = true)
    {
        $e = new \FrenchFrogs\Form\Element\Number($name, $label);
        $this->addElement($e);

        if ($is_mandatory) {
            $e->addRule('required');
        } else {
            $e->addFilter('nullable');
        }

        return $e;
    }
59924
public function get(string $name = null)
    {
        return $this->requestParser->parseInto(
                $this->injector->getInstance(
                        $this->userInputClass,
                        'stubbles.console.input.instance'
                ),
                $name
        );
    }
523734
protected function element(string $name): \DOMElement
    {
        if (\strpos($name, ':') !== false)
        {
            $keys = explode(':', $name);

            return $this->document()->createElementNS(
                $this->namespaces[$this->options()->getNamespace() . ':' . \current($keys)],
                $name
            );
        }

        return $this->createElement($name);
    }
81129
public function addTextarea(string $name) : Element\Textarea
    {
        $textarea = new Element\Textarea($this, $name);
        $this->addComponent($name, $textarea);

        return $textarea;
    }
1003308
public function getArrayElementType($name)
    {
        return  array_key_exists($name ,$this->_arrayElementTypes) ? $this->_arrayElementTypes[$name] : null;
    }
772949
static function laraform($name = null) {
        $el = new ElementDaterangepickerTwbs($name);
        $el->setWrapClass('js-daterangepicker-twbs');
        $el->putTextTwbs('from')->setAttribute('style','display:none');
        $el->putTextTwbs('to')->setAttribute('style','display:none');
        $el->putStaticTwbs('<div class="col-lg-12"><i class="fa fa-calendar"></i>&nbsp;<span></span> <b class="caret"></b></div>');
        //$el->putStaticTwbs('<i class="fa fa-calendar"></i>&nbsp;<span></span> <b class="caret"></b>');
        return $el;
    }
314099
public function from($number, $name = null)
    {
        $this->senderNumber = $number;

        $this->senderName = $name;

        return $this;
    }
545650
protected function getScalarNodeValue($name)
    {
        $domElements = $this->getDomElement()->getElementsByTagName($name);
        if ($domElements->length === 0) {
            throw new \InvalidArgumentException(sprintf('Unknown scalar node %s', $name));
        }

        return $domElements->item(0)->nodeValue;
    }
1371686
public function addInputImage(string $name) : Element\Input\Image
    {
        $input = new Element\Input\Image($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
21887
public function getAttr(string $name): string {
        $node = $this->collection()->first();

        if (!($node instanceof \DOMElement)) {
            return '';
        }

        $result = $node->getAttribute($name);

        if (empty($result)) {
            return '';
        }

        return $result;
    }
493261
public function addInputSearch(string $name) : Element\Input\Search
    {
        $input = new Element\Input\Search($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
101460
static function laraform($title, $name=null) {
        $el = new ElementSubmitTwbs($name, ['value' => $title]);
        $el->addClass('btn');
        return $el;
    }
168920
public function get(string $name)
    {
        if (isset($this->elements[$name])) {
            return $this->elements[$name];
        }

        return null;
    }
629060
public function addInputSubmit(string $name) : Element\Input\Submit
    {
        $input = new Element\Input\Submit($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
714278
public function addInputDateTime(string $name) : Element\Input\DateTime
    {
        $input = new Element\Input\DateTime($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
1346128
private function getAttributeIndex(string $name): ?int
    {
        $indexes = $this->getSerializer()::readRulesIndexes($this->getAttributeRules());
        $index   = $indexes[$name] ?? null;

        return $index;
    }