dataset = $dataset; } /** * Perform a check of the specification and throw an exception if invalid. * * @throws EmptyDataset */ public function check() : void { if ($this->dataset->empty()) { throw new EmptyDataset(); } } }