Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 2
TerminalSize
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 __construct
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
1<?php declare(strict_types=1);
2
3namespace Aviat\Kilo\Type;
4
5class TerminalSize {
6    public function __construct(public int $rows, public int $cols)
7    {
8        // Remove a row for the status bar, and one for the message bar
9        $this->rows -= 2;
10    }
11}