예제 #1
0
 public function getProperty($name)
 {
     if (!array_key_exists($key = mb_strtolower($name), $this->properties)) {
         // elevate
         if ($this->class->hasProperty($name)) {
             $this->addProperty($property = new ClassBuilderProperty($name, $this, $this->class->getProperty($name)));
             $property->setWasElevated(TRUE);
         } else {
             throw new NoSuchPropertyClassBuilderException(sprintf(" Property '%s' ist nicht vorhanden", $name));
         }
     }
     return $this->properties[$key];
 }