public function fields($fields)
    {
        if (!is_array($fields)) {
            $fields = func_get_args();
        }

        $this->fields = array_merge($this->fields, $fields);

        return $this;
    }
public function fields($fields)
    {
        if (!is_array($fields)) {
            $fields = func_get_args();
        }

        $this->fields = array_merge($this->fields, $fields);

        return $this;
    }
public function fields ( $ fields ) { if ( ! is_array ( $ fields ) ) { $ fields = func_get_args ( ) ; } $ this -> fields = array_merge ( $ this -> fields , $ fields ) ; return $ this ; }
Set the fields for this node.

@param mixed $fields

@return GraphNode
Set the fields for this node .