Skip to content

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?

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.

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