Beispiel #1
0
 public function addChild(Category $child)
 {
     if (!$this->children[$child->getName()]) {
         $this->children[] = $child;
     } else {
         throw new FoursquareException('Child already exists.');
     }
     return $this;
 }