-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #60: Add SentNotificationResponseEvent.
- Loading branch information
Showing
4 changed files
with
93 additions
and
20 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
src/Events/NotificationHandler/SentNotificationResponseEvent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace EC\Poetry\Events\NotificationHandler; | ||
|
||
use Symfony\Component\EventDispatcher\Event; | ||
|
||
/** | ||
* Class SentNotificationResponseEvent | ||
* | ||
* @package EC\Poetry\Events\NotificationHandler | ||
*/ | ||
class SentNotificationResponseEvent extends Event | ||
{ | ||
const NAME = 'poetry.notification_handler.sent_notification_response'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $message; | ||
|
||
/** | ||
* SentNotificationResponseEvent constructor. | ||
* | ||
* @param string $message | ||
*/ | ||
public function __construct($message) | ||
{ | ||
$this->message = $message; | ||
} | ||
|
||
/** | ||
* Get Message property. | ||
* | ||
* @return string | ||
* Property value. | ||
*/ | ||
public function getMessage() | ||
{ | ||
return $this->message; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters