Skip to content

Commit

Permalink
Merge pull request #3248 from dereuromark/2.5-validation
Browse files Browse the repository at this point in the history
2.5 validation method chaining
  • Loading branch information
lorenzo committed Apr 6, 2014
2 parents 2dd57c7 + cb0ac6f commit 7c3390b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Cake/Model/Validator/CakeValidationSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,12 @@ public function offsetGet($index) {
}

/**
* Sets or replace a validation rule
* Sets or replace a validation rule.
*
* This is a wrapper for ArrayAccess. Use setRule() directly for
* chainable access.
*
* @see http://www.php.net/manual/en/arrayobject.offsetset.php
*
* @param string $index name of the rule
* @param CakeValidationRule|array rule to add to $index
Expand Down

0 comments on commit 7c3390b

Please sign in to comment.