Skip to content
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

Merged
merged 6 commits into from
Sep 10, 2014
Merged

[4.2] add setter and getter for Validatior #5199

merged 6 commits into from
Sep 10, 2014

Conversation

overtrue
Copy link
Contributor

for #4037 and #4714

@GrahamCampbell
Copy link
Member

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)

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.

Copy link
Contributor Author

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.

@overtrue
Copy link
Contributor Author

Hi, @GrahamCampbell I have fixed the name. Thanks.

* @param array $customAttributes
* @return void
*/
public function addCustomAttributes(array $customAttributes)

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

Copy link
Contributor Author

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.

taylorotwell added a commit that referenced this pull request Sep 10, 2014
[4.2] add setter and getter for Validatior
@taylorotwell taylorotwell merged commit 23461a6 into laravel:4.2 Sep 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants