Passed
Push — master ( 527891...b6d5b3 )
by Yaroslav
02:51
created

HasDuskReporter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
dl 0
loc 12
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A withDuskReporter() 0 2 1
1
<?php
2
3
namespace LaravelDuskReporter;
4
5
use LaravelDuskReporter\Generation\ReportFileContract;
6
7
trait HasDuskReporter {
8
    public static ?ReportFileContract $duskReporter = null;
9
10
    /**
11
     * Set dusk reporter.
12
     *
13
     * @param ReportFileContract $reporter
14
     *
15
     * @return void
16
     */
17
    public static function withDuskReporter( ReportFileContract $reporter ): void {
18
        static::$duskReporter = $reporter;
19
    }
20
}
21