public function offsetSet($offset, $value)
{
if (method_exists($this, $offset)) {
return $this->{$offset}($value);
}
if ($this->isRequiredField($offset)) {
$this->notifications[$offset] = $value;
}
}