public function serialize()
{
$trace = debug_backtrace();
if (!isset($trace[2]) || $trace[2]['class'] != 'Drest\\Mapping\\ClassMetaData') {
trigger_error('RouteMetaData can only be serialized from a parent instance of ClassMetaData', E_USER_ERROR);
}
return serialize([$this->route_pattern, $this->route_conditions, $this->param_names, $this->param_names_path, $this->route_params, $this->unmapped_route_params, $this->name, $this->verbs, $this->collection, $this->handle_call, $this->expose, $this->disable_expose, $this->allowed_option_request]);
}