Draw   A
last analyzed

Coupling/Cohesion

Components 1
Dependencies 2

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 24
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A result() 0 6 1
1
<?php
2
3
namespace League\CLImate\TerminalObject\Basic;
4
5
use League\CLImate\TerminalObject\Helper\Art;
6
7
class Draw extends BasicTerminalObject
8
{
9
    use Art;
10
11 20
    public function __construct($art)
12
    {
13
        // Add the default art directory
14 20
        $this->addDir(__DIR__ . '/../../ASCII');
15
16 20
        $this->art = $art;
17 20
    }
18
19
    /**
20
     * Return the art
21
     *
22
     * @return array
23
     */
24 20
    public function result()
25
    {
26 20
        $file = $this->artFile($this->art);
27
28 20
        return $this->parse($file);
29
    }
30
}
31