public function checkRequired(array $attributes)
{
if ($attributes['userId'] === null) {
throw new ValueRequiredException(['name' => 'userId']);
}
if ($attributes['writer'] === null) {
throw new ValueRequiredException(['name' => 'writer']);
}
if ($attributes['instanceId'] === null) {
throw new ValueRequiredException(['name' => 'instanceId']);
}
}