public function dump($recursive = false)
    {
        $dataset = $this->data;

        if ($recursive) {
            $dataset = static::allToArray($dataset);
        }

        return $dataset;
    }
public function dump($recursive = false)
    {
        $dataset = $this->data;

        if ($recursive) {
            $dataset = static::allToArray($dataset);
        }

        return $dataset;
    }
public function dump ( $ recursive = false ) { $ dataset = $ this -> data ; if ( $ recursive ) { $ dataset = static :: allToArray ( $ dataset ) ; } return $ dataset ; }
Dump all data as array.

@param bool $recursive

@return Data[]
Dump all data as array .