Library/Stubs/Generator.php
protected function buildProperty(ClassProperty $property, $indent)
    {
        $visibility = 'public';

        if (false === $property->isPublic()) {
            $visibility = $property->isProtected() ? 'protected' : 'private';
        }

        if ($property->isStatic()) {
            $visibility = 'static '.$visibility;
        }

        $source = $visibility.' $'.$property->getName();
        $original = $property->getOriginal();

        if (isset($original['default'])) {
            $source .= ' = '.$this->wrapPHPValue([
                'default' => $original['default'],
            ]);
        }

        $docBlock = new DocBlock($property->getDocBlock(), $indent);

        return $docBlock."\n".$indent.$source.';';
    }
protected function buildProperty(ClassProperty $property, $indent)
    {
        $visibility = 'public';

        if (false === $property->isPublic()) {
            $visibility = $property->isProtected() ? 'protected' : 'private';
        }

        if ($property->isStatic()) {
            $visibility = 'static '.$visibility;
        }

        $source = $visibility.' $'.$property->getName();
        $original = $property->getOriginal();

        if (isset($original['default'])) {
            $source .= ' = '.$this->wrapPHPValue([
                'default' => $original['default'],
            ]);
        }

        $docBlock = new DocBlock($property->getDocBlock(), $indent);

        return $docBlock."\n".$indent.$source.';';
    }
protected function buildProperty ( ClassProperty $ property , $ indent ) { $ visibility = 'public' ; if ( false === $ property -> isPublic ( ) ) { $ visibility = $ property -> isProtected ( ) ? 'protected' : 'private' ; } if ( $ property -> isStatic ( ) ) { $ visibility = 'static ' . $ visibility ; } $ source = $ visibility . ' $' . $ property -> getName ( ) ; $ original = $ property -> getOriginal ( ) ; if ( isset ( $ original [ 'default' ] ) ) { $ source .= ' = ' . $ this -> wrapPHPValue ( [ 'default' => $ original [ 'default' ] , ] ) ; } $ docBlock = new DocBlock ( $ property -> getDocBlock ( ) , $ indent ) ; return $ docBlock . "\n" . $ indent . $ source . ';' ; }
Build property.

@param ClassProperty $property
@param string        $indent

@return string
Build property .