protected function checkType($row) { if ($row['type'] !== $this->required_type) { $msg = "GUID:" . $row['guid'] . " is not a valid " . $this->class; throw new \InvalidClassException($msg); } }