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

HasDuskReporter::hasDuskReporter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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