Completed
Pull Request — develop (#92)
by Jaap
02:48
created

CreateCommand::getContext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2015 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\Reflection\Php\Factory;
14
15
16
use phpDocumentor\Reflection\Php\StrategyContainer;
17
use phpDocumentor\Reflection\Types\Context;
18
19
final class CreateCommand
20
{
21
    private $object;
22
23
    /**
24
     * @var StrategyContainer
25
     */
26
    private $strategies;
27
28
    /**
29
     * @var Context
30
     */
31
    private $context;
32
33
    public function __construct($object, StrategyContainer $strategies, Context $context = null)
34
    {
35
        $this->object = $object;
36
        $this->strategies = $strategies;
37
        $this->context = $context;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43
    public function getObject()
44
    {
45
        return $this->object;
46
    }
47
48
    /**
49
     * @return StrategyContainer
50
     */
51
    public function getStrategies()
52
    {
53
        return $this->strategies;
54
    }
55
56
    /**
57
     * @return Context
58
     */
59
    public function getContext()
60
    {
61
        return $this->context;
62
    }
63
}
64