/** * Adds an error to the collection. * @param Error $error An error object. * @param $offset Offset in the array. * @return void */ public function setError(Error $error, $offset = null) { parent::offsetSet($offset, $error); }
/** * Offset to set error. * @param Error $offset Offset. * @param string|int $value Error. * @throws ArgumentTypeException * @return void */ public function offsetSet($offset, $value) { $this->checkType($value); parent::offsetSet($offset, $value); }
public function __construct(array $values = null) { parent::__construct($values); }