Passed
Push — master ( 12242c...e9b436 )
by Iman
08:01
created

ViewSituations   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A whenYouMakeView() 0 4 1
1
<?php
2
3
namespace Imanghafoori\HeyMan\WatchingStrategies\Views;
4
5
use Imanghafoori\HeyMan\Situations\BaseSituation;
6
7
final class ViewSituations extends BaseSituation
8
{
9
    /**
10
     * @param array|string $views
11
     */
12
    public function whenYouMakeView(...$views)
13
    {
14
        $view = resolve(ViewNormalizer::class)->normalizeView($views);
15
        $this->setManager(ViewEventManager::class, $view);
16
    }
17
}
18