public function addRoute($route) { if (!$route instanceof TLogRoute) { throw new TInvalidDataTypeException('logrouter_routetype_invalid'); } $this->_routes[] = $route; $route->init(null); }