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

WebFacade   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 37.5%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
ccs 3
cts 8
cp 0.375
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A initWebRouting() 0 3 1
A executeUrl() 0 3 1
A execute() 0 3 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
}