AchievementsCompleted::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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