Add a note to offsetSet() on why it cannot chain.

This commit is contained in:
euromark 2014-04-06 22:59:18 +02:00
parent 2dd57c7191
commit cb0ac6f9f3

View file

@ -325,7 +325,12 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
}
/**
* 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