| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class CommunityCreationEvent extends Event |
||
| 11 | { |
||
| 12 | /** @var Community **/ |
||
| 13 | protected $community; |
||
| 14 | /** @var User **/ |
||
| 15 | protected $founder; |
||
| 16 | |||
| 17 | const NAME = 'community.creation'; |
||
| 18 | |||
| 19 | 1 | public function __construct(Community $community, User $founder) |
|
| 20 | { |
||
| 21 | 1 | $this->community = $community; |
|
| 22 | 1 | $this->founder = $founder; |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 1 | public function getCommunity(): Community |
|
| 26 | { |
||
| 27 | 1 | return $this->community; |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function getFounder(): User |
|
| 33 | } |
||
| 34 | } |