AbstractService   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cakasim\Payone\Sdk;
6
7
use Psr\Container\ContainerInterface;
8
9
/**
10
 * The base class for various SDK services.
11
 *
12
 * @author Fabian Böttcher <[email protected]>
13
 * @since 0.1.0
14
 */
15
abstract class AbstractService
16
{
17
    /**
18
     * @var ContainerInterface The SDK service container.
19
     */
20
    protected $container;
21
22
    /**
23
     * Constructs the service with the SDK service container.
24
     *
25
     * @param ContainerInterface $container The SDK service container.
26
     */
27
    public function __construct(ContainerInterface $container)
28
    {
29
        $this->container = $container;
30
    }
31
}
32