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

ViewSituations::whenYouMakeView()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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