-
Notifications
You must be signed in to change notification settings - Fork 0
/
CliOutput.php
51 lines (40 loc) · 1000 Bytes
/
CliOutput.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Bit&Black TypoRules.
*
* @author Tobias Köngeter
* @copyright Copyright © Bit&Black
* @link https://www.bitandblack.com
* @license MIT
*/
namespace BitAndBlack\TypoRules\Diff\Output;
class CliOutput implements OutputInterface
{
private readonly string $insertStart;
private readonly string $insertEnd;
private readonly string $deleteStart;
private readonly string $deleteEnd;
public function __construct()
{
$this->insertStart = "\033[1;37;42m";
$this->insertEnd = "\033[0m";
$this->deleteStart = "\033[1;37;41m";
$this->deleteEnd = "\033[0m";
}
public function getInsertStart(): string
{
return $this->insertStart;
}
public function getInsertEnd(): string
{
return $this->insertEnd;
}
public function getDeleteStart(): string
{
return $this->deleteStart;
}
public function getDeleteEnd(): string
{
return $this->deleteEnd;
}
}