/* Decoded by unphp.net */ */ final class UserWasCreatedEvent implements ActionInterface, UserEventInterface { /** * The user that has been added. * * @var \CachetHQ\Cachet\Models\User */ public $user; /** * Create a new user was added event instance. * * @param \CachetHQ\Cachet\Models\User $user * * @return void */ public function __construct(User $user) { $this->user = $user; } /** * Get the event description. * * @return string */ public function __toString() { return 'User was created.'; } /** * Get the event action. * * @return array */ public function getAction() { return [ 'user' => $this->user, 'description' => (string) $this, ]; } } ?>