public function getActor()
{
return $this->actor;
}
/** * @param AbstractSerializer $serializer The class doing the serializing. * @param object|array $model The model being serialized. * @param array $attributes The serialized attributes of the resource. */ public function __construct(AbstractSerializer $serializer, $model, array &$attributes) { $this->serializer = $serializer; $this->model = $model; $this->attributes =& $attributes; $this->actor = $serializer->getActor(); }