예제 #1
0
 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);
 }
예제 #2
0
 public function addType(Type $t)
 {
     return parent::Add($t);
 }