Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| UpdateInstancyUser | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| handle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Listeners; |
| 4 | |
| 5 | use App\Events\InstancyUserUpdate; |
| 6 | use App\Http\Repositories\InstancyRepository; |
| 7 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 8 | |
| 9 | class UpdateInstancyUser implements ShouldQueue |
| 10 | { |
| 11 | protected $instancyRepository; |
| 12 | |
| 13 | /** |
| 14 | * Create the event listener. |
| 15 | */ |
| 16 | public function __construct(InstancyRepository $instancyRepository) |
| 17 | { |
| 18 | $this->instancyRepository = $instancyRepository; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Handle the event. |
| 23 | */ |
| 24 | public function handle(InstancyUserUpdate $event) |
| 25 | { |
| 26 | $this->instancyRepository->updateUser($event->instancyUser); |
| 27 | } |
| 28 | } |