OkEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 71.43%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 36
ccs 5
cts 7
cp 0.7143
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCompany() 0 4 1
A broadcastOn() 0 4 1
1
<?php
2
3
namespace plunner\Events\Optimise;
4
5
use Illuminate\Queue\SerializesModels;
6
use plunner\Company;
7
use plunner\Events\Event;
8
9
class OkEvent extends Event
10
{
11
    use SerializesModels;
12
13
    /**
14
     * @var Company
15
     */
16
    private $company;
17
18
    /**
19
     * OkEvent constructor.
20
     * @param Company $company
21
     */
22 6
    public function __construct(Company $company)
23
    {
24 6
        $this->company = clone $company;
25 6
    }
26
27
    /**
28
     * @return Company
29
     */
30 6
    public function getCompany()
31
    {
32 6
        return $this->company;
33
    }
34
35
    /**
36
     * Get the channels the event should be broadcast on.
37
     *
38
     * @return array
39
     */
40
    public function broadcastOn()
41
    {
42
        return [];
43
    }
44
}
45