public function addField(string $name, $type, array $options = [])
    {
        $this->fields[$name] = array_merge($options, ['type' => $type]);
        if (!isset($options['argument']) || $options['argument'] !== false) {
            $this->arguments[$name] = array_merge($options, ['type' => $type]);
        }

        return $this;
    }
public function addField(string $name, $type, array $options = [])
    {
        $this->fields[$name] = array_merge($options, ['type' => $type]);
        if (!isset($options['argument']) || $options['argument'] !== false) {
            $this->arguments[$name] = array_merge($options, ['type' => $type]);
        }

        return $this;
    }
public function addField ( string $ name , $ type , array $ options = [ ] ) { $ this -> fields [ $ name ] = array_merge ( $ options , [ 'type' => $ type ] ) ; if ( ! isset ( $ options [ 'argument' ] ) || $ options [ 'argument' ] !== false ) { $ this -> arguments [ $ name ] = array_merge ( $ options , [ 'type' => $ type ] ) ; } return $ this ; }
Add single fields with type and list of options

@param string $name
@param        $type
@param array  $options
@return $this|BuilderInterface
Add single fields with type and list of options