Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
LateSurveyEvent
66.67% covered (warning)
66.67%
2 / 3
66.67% covered (warning)
66.67%
2 / 3
3.33
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getSurvey
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setSurvey
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Domain\Notification\Event;
4
5use App\Domain\Maturity\Model\Survey;
6use Symfony\Contracts\EventDispatcher\Event;
7
8class LateSurveyEvent extends Event
9{
10    protected Survey $survey;
11
12    public function __construct(Survey $survey)
13    {
14        $this->survey = $survey;
15    }
16
17    public function getSurvey(): Survey
18    {
19        return $this->survey;
20    }
21
22    public function setSurvey(Survey $survey): void
23    {
24        $this->survey = $survey;
25    }
26}