Beispiel #1
0
 /**
  * @return PhpAnnotationBlock
  */
 protected function getPropertyAnnotationBlock(PhpProperty $property)
 {
     $annotationBlock = new PhpAnnotationBlock();
     $annotationBlock->addChild(sprintf('The %s', $property->getName()));
     if (($attribute = $this->getModel()->getAttribute($property->getName())) instanceof StructAttributeModel) {
         $this->defineModelAnnotationsFromWsdl($annotationBlock, $attribute);
         $annotationBlock->addChild(new PhpAnnotation(self::ANNOTATION_VAR, $this->getStructAttributeTypeSetAnnotation($attribute, true)));
     }
     return $annotationBlock;
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function testSetAccess()
 {
     $property = new PhpProperty('Foo');
     $property->setAccess(' public');
 }