protected function doCreate($object, StrategyContainer $strategies, ?Context $context = null)
    {
        $visibility = $this->buildVisibility($object);
        $default = null;
        if ($object->getDefault() !== null) {
            $default = $this->valueConverter->prettyPrintExpr($object->getDefault());
        }

        $docBlock = $this->createDocBlock($strategies, $object->getDocComment(), $context);

        return new PropertyDescriptor(
            $object->getFqsen(),
            $visibility,
            $docBlock,
            $default,
            $object->isStatic(),
            new Location($object->getLine())
        );
    }
protected function doCreate($object, StrategyContainer $strategies, ?Context $context = null)
    {
        $visibility = $this->buildVisibility($object);
        $default = null;
        if ($object->getDefault() !== null) {
            $default = $this->valueConverter->prettyPrintExpr($object->getDefault());
        }

        $docBlock = $this->createDocBlock($strategies, $object->getDocComment(), $context);

        return new PropertyDescriptor(
            $object->getFqsen(),
            $visibility,
            $docBlock,
            $default,
            $object->isStatic(),
            new Location($object->getLine())
        );
    }
protected function doCreate ( $ object , StrategyContainer $ strategies , ? Context $ context = null ) { $ visibility = $ this -> buildVisibility ( $ object ) ; $ default = null ; if ( $ object -> getDefault ( ) !== null ) { $ default = $ this -> valueConverter -> prettyPrintExpr ( $ object -> getDefault ( ) ) ; } $ docBlock = $ this -> createDocBlock ( $ strategies , $ object -> getDocComment ( ) , $ context ) ; return new PropertyDescriptor ( $ object -> getFqsen ( ) , $ visibility , $ docBlock , $ default , $ object -> isStatic ( ) , new Location ( $ object -> getLine ( ) ) ) ; }
Creates an PropertyDescriptor out of the given object.

Since an object might contain other objects that need to be converted the $factory is passed so it can be
used to create nested Elements.

@param PropertyIterator $object object to convert to an PropertyDescriptor
@param StrategyContainer $strategies used to convert nested objects.
@return PropertyDescriptor
Creates an PropertyDescriptor out of the given object .