AbstractBuilderFactory::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
namespace Paranoia\Builder;
3
4
use Paranoia\Configuration\AbstractConfiguration;
5
6
abstract class AbstractBuilderFactory
7
{
8
    /** @var AbstractConfiguration */
9
    protected $configuration;
10
11
    /**
12
     * AbstractBuilderFactory constructor.
13
     * @param AbstractConfiguration $configuration
14
     */
15
    public function __construct(AbstractConfiguration $configuration)
16
    {
17
        $this->configuration = $configuration;
18
    }
19
20
    /**
21
     * @param $transactionType
22
     * @return AbstractRequestBuilder
23
     */
24
    abstract protected function createBuilder($transactionType);
25
}
26