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