object; if (!$event instanceof SummitEventWithFile) return []; $values = parent::serialize($expand, $fields, $relations, $params); $values['attachment'] = $event->hasAttachment()? $event->getAttachment()->getUrl() : null; return $values; } }