Add event action storage. Closes #2344
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
|
||||
namespace CachetHQ\Cachet\Bus\Events\User;
|
||||
|
||||
use CachetHQ\Cachet\Bus\Events\ActionInterface;
|
||||
use CachetHQ\Cachet\Models\Invite;
|
||||
|
||||
final class UserWasInvitedEvent implements UserEventInterface
|
||||
final class UserWasInvitedEvent implements ActionInterface, UserEventInterface
|
||||
{
|
||||
/**
|
||||
* The invite that has been added.
|
||||
@@ -43,4 +44,17 @@ final class UserWasInvitedEvent implements UserEventInterface
|
||||
{
|
||||
return 'User was invited.';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the event action.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAction()
|
||||
{
|
||||
return [
|
||||
'user' => $this->user,
|
||||
'description' => (string) $this,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user