Completed
Branch release/1.3 (364b03)
by Johnny
02:53
created

Cli::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace Redbox\Cli;
3
use Redbox\Cli\Arguments\Manager as ArgumentManager;
4
5
class Cli
6
{
7
    /**
8
     * An instance of the Argument Manager class
9
     *
10
     * @var \Redbox\Cli\Arguments\Manager
11
     */
12
    public $arguments;
13
14 9
    public function __construct()
15
    {
16 9
        $this->setManager(new ArgumentManager());
17 9
    }
18
19
    /**
20
     * Set the manager for handling arguments
21
     *
22
     * @param \Redbox\Cli\Arguments\Manager $manager
23
     */
24 9
    public function setManager(ArgumentManager $manager)
25
    {
26 9
        $this->arguments = $manager;
27
    }
28
}