Error::read()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
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
3
namespace DeGraciaMathieu\Clike\Lines;
4
5
use DeGraciaMathieu\Clike\Contracts;
6
7
class Error extends Line implements Contracts\Line {
8
9
    /**
10
     * Get line
11
     * @return array
12
     */
13 2
    public function read() :array
14
    {
15
        return [
16 2
            'type' => LineConstants::ERROR,
17 2
            'content' => $this->content,
18
        ];
19
    }
20
}
21