Created
June 8, 2016 21:03
-
-
Save Mulkave/29a0cdb8107f7b8f2781a2a9f2f77026 to your computer and use it in GitHub Desktop.
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
<?php | |
namespace Directory\Domains\Notification\Jobs; | |
use Event; | |
use Directory\Foundation\AbstractQueueableJob; | |
class NotifyOfficersJob extends AbstractQueueableJob | |
{ | |
private $notification; | |
public function __construct($notification) | |
{ | |
$this->notification = $notification; | |
} | |
public function handle() | |
{ | |
// listeners access the citizen using $notification->citizen | |
Event::fire($this->notification); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment