Example #1
0
 function offsetSet($index, $route)
 {
     if (!$route instanceof IRouter) {
         throw new InvalidArgumentException("Argument must be IRouter descendant.");
     }
     parent::offsetSet($index, $route);
 }
Example #2
0
 function __construct()
 {
     parent::__construct(NULL, 'IRouter');
 }