TerminalFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromSystem() 0 3 1
1
<?php
2
3
namespace PhpSchool\CliMenu\Terminal;
4
5
use PhpSchool\Terminal\IO\ResourceInputStream;
6
use PhpSchool\Terminal\IO\ResourceOutputStream;
7
use PhpSchool\Terminal\Terminal;
8
use PhpSchool\Terminal\UnixTerminal;
9
10
/**
11
 * @author Michael Woodward <[email protected]>
12
 */
13
class TerminalFactory
14
{
15
    public static function fromSystem() : Terminal
16
    {
17
        return new UnixTerminal(new ResourceInputStream, new ResourceOutputStream);
18
    }
19
}
20