protected function injectProperty(ClassReflection $class, array $propertyTag)
    {
        if (count($propertyTag) == 3 && !empty($propertyTag[1])) {
            $property = new PropertyReflection($propertyTag[1], $class->getLine());
            $property->setDocComment($propertyTag[2]);
            $property->setShortDesc($propertyTag[2]);

            if (!empty($propertyTag[0])) {
                $property->setHint($propertyTag[0]);
            }

            $class->addProperty($property);

            return true;
        }

        return false;
    }
protected function injectProperty(ClassReflection $class, array $propertyTag)
    {
        if (count($propertyTag) == 3 && !empty($propertyTag[1])) {
            $property = new PropertyReflection($propertyTag[1], $class->getLine());
            $property->setDocComment($propertyTag[2]);
            $property->setShortDesc($propertyTag[2]);

            if (!empty($propertyTag[0])) {
                $property->setHint($propertyTag[0]);
            }

            $class->addProperty($property);

            return true;
        }

        return false;
    }
protected function injectProperty ( ClassReflection $ class , array $ propertyTag ) { if ( count ( $ propertyTag ) == 3 && ! empty ( $ propertyTag [ 1 ] ) ) { $ property = new PropertyReflection ( $ propertyTag [ 1 ] , $ class -> getLine ( ) ) ; $ property -> setDocComment ( $ propertyTag [ 2 ] ) ; $ property -> setShortDesc ( $ propertyTag [ 2 ] ) ; if ( ! empty ( $ propertyTag [ 0 ] ) ) { $ property -> setHint ( $ propertyTag [ 0 ] ) ; } $ class -> addProperty ( $ property ) ; return true ; } return false ; }
Adds a new property to the class using an array of tokens.

@param ClassReflection $class       Class reflection
@param array           $propertyTag Property tag contents

@return bool
Adds a new property to the class using an array of tokens .