ClassMetadata::addGetterConstraint()

ClassMetadata addGetterConstraint(string $property, Constraint $constraint)

Adds a constraint to the getter of the given property.

The name of the getter is assumed to be the name of the property with an uppercased first letter and either the prefix "get" or "is".

Parameters

string $property The name of the property
Constraint $constraint The constraint

Return Value

ClassMetadata This object
doc_Symfony
2016-10-28 06:08:52
Comments
Leave a Comment

Please login to continue.