Completed
Pull Request — master (#39)
by Daniel
04:05
created

ConsoleFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommandList() 0 6 2
1
<?php
2
3
namespace Jellyfish\Console;
4
5
use ArrayObject;
6
7
class ConsoleFactory
8
{
9
    /**
10
     * @var \ArrayObject
11
     */
12
    protected $commandList;
13
14
    /**
15
     * @return \ArrayObject
16
     */
17
    public function getCommandList(): ArrayObject {
18
        if ($this->commandList === null) {
19
            $this->commandList = new ArrayObject();
20
        }
21
22
        return $this->commandList;
23
    }
24
}
25