ConfigurableTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setConfigurator() 0 4 1
A getConfigurator() 0 4 1
1
<?php
2
/**
3
 * This file is part of the phpspec-console package.
4
 * (c) 2017 Timo Michna <timomichna/yahoo.de>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Tidal\PhpSpec\ConsoleExtension\Behavior\Command;
11
12
use Tidal\PhpSpec\ConsoleExtension\Contract\Command\ConfiguratorInterface;
13
14
trait ConfigurableTrait
15
{
16
    /**
17
     * @var ConfiguratorInterface
18
     */
19
    private $configurator;
20
21
    /**
22
     * @param ConfiguratorInterface $configurator
23
     */
24
    public function setConfigurator(ConfiguratorInterface $configurator)
25
    {
26
        $this->configurator = $configurator;
27
    }
28
29
    /**
30
     * @return ConfiguratorInterface
31
     */
32
    public function getConfigurator(): ConfiguratorInterface
33
    {
34
        return $this->configurator;
35
    }
36
}
37
38