/** * Returns the type from the Attributes php tag type. * * @return string */ public static function getType(Zend_CodeGenerator_Php_Property $parAttribute) { $docblock = $parAttribute->getDocblock(); if ($docblock) { $tags = $docblock->getTags(); foreach ($tags as $tag) { /* @var $tag Zend_CodeGenerator_Php_Docblock_Tag */ if ($tag->getName() === 'var') { $type = $tag->getDescription(); return $type; } } } return false; }