user = $user; $this->metric = $metric; } /** * Get the event description. * * @return string */ public function __toString() { return 'Metric was updated.'; } /** * Get the event action. * * @return array */ public function getAction() { return [ 'user' => $this->user, 'description' => (string) $this, ]; } }