Documentation

SerializerExtractor
in package
implements PropertyListExtractorInterface

Lists available properties using Symfony Serializer Component metadata.

Tags
author

Kévin Dunglas dunglas@gmail.com

final

Table of Contents

Interfaces

PropertyListExtractorInterface
Extracts the list of properties available for the given class.

Properties

$classMetadataFactory  : ClassMetadataFactoryInterface

Methods

__construct()  : mixed
getProperties()  : array<string|int, string>|null
Gets the list of properties available for the given class.

Properties

$classMetadataFactory read-only

private ClassMetadataFactoryInterface $classMetadataFactory

Methods

__construct()

public __construct(ClassMetadataFactoryInterface $classMetadataFactory) : mixed
Parameters
$classMetadataFactory : ClassMetadataFactoryInterface

getProperties()

Gets the list of properties available for the given class.

public getProperties(string $class[, array<string|int, mixed> $context = [] ]) : array<string|int, string>|null
Parameters
$class : string
$context : array<string|int, mixed> = []
Return values
array<string|int, string>|null

        
On this page

Search results