public function jsonSerialize()
    {
        return [
            'draw'            => (int) $this->draw,
            'recordsTotal'    => (int) $this->recordsTotal,
            'recordsFiltered' => (int) $this->recordsFiltered,
            'data'            => $this->data,
        ];
    }
public function jsonSerialize()
    {
        return [
            'draw'            => (int) $this->draw,
            'recordsTotal'    => (int) $this->recordsTotal,
            'recordsFiltered' => (int) $this->recordsFiltered,
            'data'            => $this->data,
        ];
    }
public function jsonSerialize ( ) { return [ 'draw' => ( int ) $ this -> draw , 'recordsTotal' => ( int ) $ this -> recordsTotal , 'recordsFiltered' => ( int ) $ this -> recordsFiltered , 'data' => $ this -> data , ] ; }
Convert results into array as expected by DataTables plugin.

@return array
Convert results into array as expected by DataTables plugin .