public function data(array $data = null)
    {
        if (is_null($data)) {
            return $this->data;
        }

        $this->data = $data;

        return $this;
    }
public function data(array $data = null)
    {
        if (is_null($data)) {
            return $this->data;
        }

        $this->data = $data;

        return $this;
    }
public function data ( array $ data = null ) { if ( is_null ( $ data ) ) { return $ this -> data ; } $ this -> data = $ data ; return $ this ; }
Set or get data.

@param array $data

@return $this
Set or get data .