-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.2] add setter and getter for Validatior #5199
Conversation
Set is probably the wrong word. Maybe "add", since we're not actually setting the attributes, we adding to them? |
* @param array $customAttributes | ||
* @return void | ||
*/ | ||
public function setCustomAttributes(array $customAttributes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already quite similar method called setAttributeNames.
In this case, perhaps the other two method should be called setValueNames
and getValueNames
?
the getCustomAttributes should be getAttributeNames
?
I know your naming makes more sense, but setAttributeNames
is already in API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piotr-cz oh, yes. Thank you.
Hi, @GrahamCampbell I have fixed the name. Thanks. |
* @param array $customAttributes | ||
* @return void | ||
*/ | ||
public function addCustomAttributes(array $customAttributes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's already a setAttributeNames
method that does almost the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piotr-cz One is 'set', 'add' is another.
[4.2] add setter and getter for Validatior
for #4037 and #4714