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