/** * __construct * * @param array $collection * @param string $type * @return void */ public function __construct(array $collection, $type = null) { parent::__construct($collection); if ($this->type === null) { if ($type == null) { throw new Exception('Collection is niet correct geinitialiseerd. Er moet een type worden opgegeven.'); } else { $this->type = $type; } } }
/** * __construct * * @param array $collection * @return void */ public function __construct($collection) { parent::__construct($collection, "KVDutil_Auth_Rol"); }