ReverseProxyAent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace TheAentMachine\Aent;
4
5
use TheAentMachine\Aent\Event\ReverseProxy\AbstractNewVirtualHostEvent;
6
use TheAentMachine\Aent\Event\ReverseProxy\AbstractReverseProxyAddEvent;
7
8
final class ReverseProxyAent extends AbstractAent
9
{
10
    /**
11
     * ReverseProxyAent constructor.
12
     * @param string $name
13
     * @param AbstractReverseProxyAddEvent $addEvent
14
     * @param AbstractNewVirtualHostEvent $newVirtualHostEvent
15
     */
16
    public function __construct(string $name, AbstractReverseProxyAddEvent $addEvent, AbstractNewVirtualHostEvent $newVirtualHostEvent)
17
    {
18
        parent::__construct($name);
19
        $this->add($addEvent);
20
        $this->add($newVirtualHostEvent);
21
    }
22
}
23