/** * @inheritdoc */ public function getAttributes() { if ($this->attributes === null) { $attributes = $this->schema->getAttributes($this->resource); if ($this->attributeKeysFilter !== null) { $attributes = array_intersect_key($attributes, $this->attributeKeysFilter); } $this->attributes = $attributes; } return $this->attributes; }