Logger   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A logProcessingFile() 0 6 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