ReverseProxyAent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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