meta; } public final function updateMetaKey($key, $value, bool $update = true): self { $meta = $this->getMeta(); $meta->{$key} = $value; $this->meta = (object) $meta; if ($update) { $this->update(['meta' => $this->meta]); } return $this; } }