Skip to content

Commit 4409767

Browse files
guilliamxavierfabpot
authored andcommitted
[Serializer][Validator] Update some phpDoc relative to "getters"
1 parent 9836533 commit 4409767

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Mapping/ClassMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function addPropertyConstraints($property, array $constraints)
237237
* Adds a constraint to the getter of the given property.
238238
*
239239
* The name of the getter is assumed to be the name of the property with an
240-
* uppercased first letter and either the prefix "get" or "is".
240+
* uppercased first letter and the prefix "get", "is" or "has".
241241
*
242242
* @param string $property The name of the property
243243
*

Mapping/GetterMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* method.
1919
*
2020
* A property getter is any method that is equal to the property's name,
21-
* prefixed with either "get" or "is". That method will be used to access the
21+
* prefixed with "get", "is" or "has". That method will be used to access the
2222
* property's value.
2323
*
2424
* The getter will be invoked by reflection, so the access of private and

0 commit comments

Comments
 (0)