Passed
Push — master ( 401f1d...64f127 )
by Mike
01:50
created

WebFacade::executeUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
4
namespace Xervice\Web;
5
6
7
use Xervice\Core\Facade\AbstractFacade;
8
9
/**
10
 * @method \Xervice\Web\WebFactory getFactory()
11
 */
12
class WebFacade extends AbstractFacade
13
{
14
    public function initWebRouting(): void
15
    {
16
        $this->getFactory()->createRouteProvider()->provideRoutings();
17
    }
18
19
    /**
20
     * @param string $url
21
     *
22
     * @throws \Xervice\Web\Business\Exception\WebExeption
23
     */
24 2
    public function executeUrl(string $url): void
25
    {
26 2
        $this->getFactory()->createExecutionProvider()->executeUrl($url);
27 2
    }
28
29
    /**
30
     * @throws \Xervice\Web\Business\Exception\WebExeption
31
     */
32
    public function execute(): void
33
    {
34
        $this->getFactory()->createExecutionProvider()->execute();
35
    }
36
}