Completed
Push — master ( 33476c...427ebd )
by Bertrand
09:14
created

SetPageDryStateListener   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A handle() 0 3 1
1
<?php
2
3
4
namespace App\Listeners;
5
6
7
use App\Events\InteractionOnPage;
8
use App\Src\UseCases\Domain\System\SetPageDryState;
9
10
class SetPageDryStateListener
11
{
12
    private $setPageDryState;
13
14
    public function __construct(SetPageDryState $setPageDryState)
15
    {
16
        $this->setPageDryState = $setPageDryState;
17
    }
18
19
    public function handle(InteractionOnPage $event)
20
    {
21
        $this->setPageDryState->execute($event->pageId);
22
    }
23
}
24