Flarum\Core\Notification::setDataAttribute PHP Méthode

setDataAttribute() public méthode

When setting the data attribute, serialize it into JSON for storage in the database.
public setDataAttribute ( mixed $value )
$value mixed
    public function setDataAttribute($value)
    {
        $this->attributes['data'] = json_encode($value);
    }