/** * @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; }