PropertyInfoExtractor example

protected $propertyInfoExtractor;

    /** * @var PropertyAccessor */
    protected $propertyAccessor;

    public function __construct()
    {
        $reflectionExtractor = new ReflectionExtractor();
        $phpDocExtractor = new PhpDocExtractor();
        $this->propertyInfoExtractor = new PropertyInfoExtractor(
            [$reflectionExtractor],
            [$phpDocExtractor$reflectionExtractor],
            [$phpDocExtractor],
            [$reflectionExtractor]
        );
        $this->propertyAccessor = PropertyAccess::createPropertyAccessor();
    }

    /** * Removes all extensions from an object (recursive) * Only works if the properties are public or accessible by getter */
Home | Imprint | This part of the site doesn't use cookies.