CandidateApplyListener::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace App\Listeners;
4
5
use App\Events\CandidateApplied;
6
use App\Utils\MessageService;
7
8
class CandidateApplyListener
9
{
10
    /**
11
     * Create the event listener.
12
     *
13
     * @return void
14
     */
15
    public function __construct()
16
    {
17
        //
18
    }
19
20
    /**
21
     * Handle the event.
22
     *
23
     * @param object $event
24
     *
25
     * @return void
26
     */
27
    public function handle(CandidateApplied $event)
28
    {
29
        MessageService::sendConfirmationToCandidate($event->candidate);
30
        MessageService::notifyObservers($event->candidate);
31
    }
32
}
33