ConfigurableTrait::getConfigurator()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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