Page   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 5
Bugs 0 Features 0
Metric Value
eloc 5
c 5
b 0
f 0
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocumentWidth() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace VPA\Console\Glyphs;
4
5
use VPA\Console\FrameConfigInterface;
6
7
class Page extends GlyphBlock
8
{
9
    protected int $documentWidth = 80;
10
11 8
    public function __construct(protected FrameConfigInterface $globalConfig)
12
    {
13 8
        parent::__construct($globalConfig);
14 8
        $this->documentWidth = $this->gc('shell')->getDocumentWidthFromOS();
15
    }
16
17 2
    public function getDocumentWidth(): int
18
    {
19 2
        return $this->documentWidth;
20
    }
21
}
22