Passed
Branch master (a258f1)
by Mike
02:32
created

WebService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 17
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 3 1
A boot() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Xervice\Web\Communication\Plugin;
5
6
use Xervice\Core\Plugin\AbstractCommunicationPlugin;
7
use Xervice\Kernel\Business\Model\Service\ServiceProviderInterface;
8
use Xervice\Kernel\Business\Plugin\BootInterface;
9
use Xervice\Kernel\Business\Plugin\ExecuteInterface;
10
11
12
/**
13
 * @method \Xervice\Web\Business\WebFacade getFacade()
14
 */
15
class WebService extends AbstractCommunicationPlugin implements BootInterface, ExecuteInterface
16
{
17
    /**
18
     * @param \Xervice\Kernel\Business\Model\Service\ServiceProviderInterface $serviceProvider
19
     *
20
     */
21
    public function boot(ServiceProviderInterface $serviceProvider): void
22
    {
23
        $this->getFacade()->initWebRouting();
24
    }
25
26
    /**
27
     * @param \Xervice\Kernel\Business\Model\Service\ServiceProviderInterface $serviceProvider
28
     */
29
    public function execute(ServiceProviderInterface $serviceProvider): void
30
    {
31
        $this->getFacade()->execute();
32
    }
33
34
}