\Symfony\Component\PropertyInfoPropertyInfoExtractorInterface

Gets info about PHP class properties.

A convenient interface inheriting all specific info interfaces.

Summary

Methods
Constants
getTypes()
getShortDescription()
getLongDescription()
isReadable()
isWritable()
getProperties()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getTypes()

getTypes(string  $class, string  $property, array  $context = []) : \Symfony\Component\PropertyInfo\Type[]|null

Gets types of a property.

Parameters

string $class
string $property
array $context

Returns

\Symfony\Component\PropertyInfo\Type[]|null —

getShortDescription()

getShortDescription(string  $class, string  $property, array  $context = []) : string|null

Gets the short description of the property.

Parameters

string $class
string $property
array $context

Returns

string|null —

getLongDescription()

getLongDescription(string  $class, string  $property, array  $context = []) : string|null

Gets the long description of the property.

Parameters

string $class
string $property
array $context

Returns

string|null —

isReadable()

isReadable(string  $class, string  $property, array  $context = []) : bool|null

Is the property readable?

Parameters

string $class
string $property
array $context

Returns

bool|null —

isWritable()

isWritable(string  $class, string  $property, array  $context = []) : bool|null

Is the property writable?

Parameters

string $class
string $property
array $context

Returns

bool|null —

getProperties()

getProperties(string  $class, array  $context = []) : string[]|null

Gets the list of properties available for the given class.

Parameters

string $class
array $context

Returns

string[]|null —