Passed
Push — 9.x ( 701c54...b3b900 )
by Andrey
181:40 queued 166:43
created

Logger::setLogger()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Concerns;
4
5
use Helldar\Verbose\Facades\Log;
6
use Helldar\Verbose\Services\Logger as Service;
7
8
/** @mixin \Helldar\LaravelLangPublisher\Console\Add */
9
trait Logger
10
{
11
    protected function setLogger(): void
12
    {
13
        Service::io($this->output);
14
    }
15
16
    protected function log(string $message): void
17
    {
18
        Log::write($message);
19
    }
20
}
21