public function type($type=null)
    {
        if (isset($type)) {
            $this->data['type'] = $type;
            return $this;
        }
        
        return isset($this->data['type']) ? $this->data['type'] : 'select';
    }
public function type($type=null)
    {
        if (isset($type)) {
            $this->data['type'] = $type;
            return $this;
        }
        
        return isset($this->data['type']) ? $this->data['type'] : 'select';
    }
public function type ( $ type = null ) { if ( isset ( $ type ) ) { $ this -> data [ 'type' ] = $ type ; return $ this ; } return isset ( $ this -> data [ 'type' ] ) ? $ this -> data [ 'type' ] : 'select' ; }
get or set type
@param  string|null $type
@return string|static
get or set type