public static function fromReflection(ReflectionDocComment $reflectionDocComment)
    {
        $annotations = array();
        foreach ($reflectionDocComment->getAnnotationsCollection()->getAnnotations() as $reflectionTag) {
            $annotations[] = BaseTag::fromReflection($reflectionTag);
        }

        return new static($reflectionDocComment->getShortDescription(), $reflectionDocComment->getLongDescription(), $annotations);
    }
public static function fromReflection(ReflectionDocComment $reflectionDocComment)
    {
        $annotations = array();
        foreach ($reflectionDocComment->getAnnotationsCollection()->getAnnotations() as $reflectionTag) {
            $annotations[] = BaseTag::fromReflection($reflectionTag);
        }

        return new static($reflectionDocComment->getShortDescription(), $reflectionDocComment->getLongDescription(), $annotations);
    }
public static function fromReflection ( ReflectionDocComment $ reflectionDocComment ) { $ annotations = array ( ) ; foreach ( $ reflectionDocComment -> getAnnotationsCollection ( ) -> getAnnotations ( ) as $ reflectionTag ) { $ annotations [ ] = BaseTag :: fromReflection ( $ reflectionTag ) ; } return new static ( $ reflectionDocComment -> getShortDescription ( ) , $ reflectionDocComment -> getLongDescription ( ) , $ annotations ) ; }
Create a new documentation comment from reflection.

@param \Wingu\OctopusCore\Reflection\ReflectionDocComment $reflectionDocComment The documentation comment reflection.
@return \Wingu\OctopusCore\CodeGenerator\PHP\DocCommentGenerator
Create a new documentation comment from reflection .