function toArray() { return $this->data; }
/** * get data transformed * * @return array|null */ protected function getData() { return $this->data ? $this->data->toArray() : null; }