Skip to content

Commit

Permalink
[Serializer][Validator] Update some phpDoc relative to "getters"
Browse files Browse the repository at this point in the history
  • Loading branch information
guilliamxavier authored and fabpot committed Apr 13, 2021
1 parent 9836533 commit 4409767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function addPropertyConstraints($property, array $constraints)
* 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".
* uppercased first letter and the prefix "get", "is" or "has".
*
* @param string $property The name of the property
*
Expand Down
2 changes: 1 addition & 1 deletion Mapping/GetterMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* method.
*
* A property getter is any method that is equal to the property's name,
* prefixed with either "get" or "is". That method will be used to access the
* prefixed with "get", "is" or "has". That method will be used to access the
* property's value.
*
* The getter will be invoked by reflection, so the access of private and
Expand Down

0 comments on commit 4409767

Please sign in to comment.