JobGeneratedEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSynchronous() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 10.03.19
6
 * Time: 20:15
7
 */
8
9
namespace Foundation\Generator\Events;
10
11
12
use Foundation\Generator\Abstracts\ResourceGeneratedEvent;
13
14
/**
15
 * Class JobGeneratedEvent
16
 * @package Foundation\Generator\Events
17
 */
18
class JobGeneratedEvent extends ResourceGeneratedEvent
19
{
20 2
    public function isSynchronous(): bool
21
    {
22 2
        return $this->getStubOption('sync');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getStubOption('sync') could return the type null which is incompatible with the type-hinted return boolean. Consider adding an additional type-check to rule them out.
Loading history...
23
    }
24
}
25