public function __construct(array $data, NSelection $table) { if (!($table instanceof Selection || $table instanceof GroupedSelection)) { throw new \Nette\InvalidArgumentException(); } parent::__construct($data, $table); }