AbstractService::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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