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

HasDuskReporter::withDuskReporter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
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