offsetSet() public method
Adds the cookie to the collection.
This method is required by the SPL interface ArrayAccess. It is implicitly called when you use something like $collection[$name] = $cookie;
. This is equivalent to add().
public void offsetSet ( $name, $cookie ) | ||
---|---|---|
$name | string |
The cookie name |
$cookie | yii\web\Cookie |
The cookie to be added |
Please login to continue.