Logger::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ublaboo\Anabelle\Console\Utils;
6
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
final class Logger
10
{
11
12
	/**
13
	 * @var OutputInterface
14
	 */
15
	private $output;
16
17
18
	public function __construct(OutputInterface $output)
19
	{
20
		$this->output = $output;
21
	}
22
23
24
	public function logProcessingFile(string $path): void
25
	{
26
		$path = str_replace('/./', '/', $path);
27
28
		$this->output->writeln("Processing file [$path]...");
29
	}
30
}
31