[...$collection], ]; } /** * Get an array representing the properties of a collection. * * @param SimpleORMap $collection * @return array */ public static function castModel(SimpleORMap $model) { return [ Caster::PREFIX_VIRTUAL . 'attributes' => $model->toArray(), ]; } }