Example #1
0
 /**
  *
  * @param WS_Model_Xml_Entity $e
  * @throws InvalidArgumentException On properties with dublicate names.
  */
 public function addEntity(WS_Model_Xml_Entity $e)
 {
     if ($this->hasEntity($e->getName())) {
         throw new InvalidArgumentException("Entity with name '{$e->getName()}' allready added to the model!");
     }
     $this->entities[$e->getName()] = $e;
 }