Наследование: extends AbstractPhpElement
Пример #1
0
 /**
  * @param PropertyContainer
  */
 protected function getClassProperties(PropertyContainer $properties)
 {
     if ($this->getModel()->getAttributes()->count() > 0) {
         foreach ($this->getModelAttributes() as $attribute) {
             $properties->add(new PhpProperty($attribute->getCleanName(), PhpProperty::NO_VALUE));
         }
     }
 }
Пример #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testAddWithException()
 {
     $property = new Property(self::getBingGeneratorInstance());
     $property->add(new PhpConstant('Bar'));
 }