private function createField($type, $name, $value, $inner)
    {
        if ($this->hasOptionsMethod($name)) {
            $inner = array_merge($inner, ['options' => $this->getOptions($name)]);
        }

        return $this->fields->create($type, $name, $this->getValue($name), $inner);
    }
private function createField($type, $name, $value, $inner)
    {
        if ($this->hasOptionsMethod($name)) {
            $inner = array_merge($inner, ['options' => $this->getOptions($name)]);
        }

        return $this->fields->create($type, $name, $this->getValue($name), $inner);
    }
private function createField ( $ type , $ name , $ value , $ inner ) { if ( $ this -> hasOptionsMethod ( $ name ) ) { $ inner = array_merge ( $ inner , [ 'options' => $ this -> getOptions ( $ name ) ] ) ; } return $ this -> fields -> create ( $ type , $ name , $ this -> getValue ( $ name ) , $ inner ) ; }
Create and return a Field Instance.

@param mixed  $type
@param string $name
@param string $value
@param mixed  $inner

@return
Create and return a Field Instance .