SubscriberGatewayManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addSubscriberGateway() 0 3 1
A getAll() 0 3 1
1
<?php
2
3
namespace MailMotor\Bundle\MailMotorBundle\Manager;
4
5
class SubscriberGatewayManager
6
{
7
    /** @var array */
8
    private $subscriberGateways = [];
9
10
    public function addSubscriberGateway(string $gateway, string $alias): void
11
    {
12
        $this->subscriberGateways[$alias] = $gateway;
13
    }
14
15
    public function getAll(): array
16
    {
17
        return $this->subscriberGateways;
18
    }
19
}
20