public function add(Table &$table = null) { if ($this->Some(function ($t) use($table) { return $t->getName() === $table->getName(); })) { throw new \DomainException('Table name must be unique in this collection'); } return parent::Add($table); }
public function addType(Type $t) { return parent::Add($t); }