Back to AfterLoadEvent class

Method setRow

protected array|null
setRow
(mixed $value)
Setter for the row argument
Parameters
  • array|null $value The value to set
Returns
  • array|null
-
  • \BadMethodCallException if the argument is not of the expected type

Method setRow - Source code

/**
 * Setter for the row argument
 *
 * @param   array|null  $value  The value to set
 *
 * @return  array|null
 *
 * @throws  BadMethodCallException  if the argument is not of the expected type
 */
protected function setRow($value)
{
    if (!\is_null($value) && !\is_array($value)) {
        throw new BadMethodCallException("Argument 'row' of event {$this->name} is not of the expected type");
    }
    return $value;
}
OSZAR »