AchievementsCompleted   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Laravel\Achievements\Events;
4
5
class AchievementsCompleted extends AbstractEvent
6
{
7
    /**
8
     * Completed achievements list.
9
     *
10
     * @var array
11
     */
12
    public $achievements = [];
13
14
    /**
15
     * AchievementsCompleted constructor.
16
     *
17
     * @param mixed $owner
18
     * @param array $achievements
19
     */
20
    public function __construct($owner, array $achievements)
21
    {
22
        $this->owner = $owner;
23
        $this->achievements = $achievements;
24
    }
25
}
26