/** * @inheritDoc */ public function getResources() { $data = $this->get(self::DATA); if (!is_array($data)) { throw new RuntimeException('Data member is not an array.'); } return ResourceCollection::create($data); }