Passed
Pull Request — 1.11.x (#4505)
by Angel Fernando Quiroz
16:24 queued 06:00
created

HookLearningPathCreated::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
class HookLearningPathCreated extends HookEvent implements HookLearningPathCreatedEventInterface
6
{
7
    protected function __construct()
8
    {
9
        parent::__construct('HookLearningPathCreated');
10
    }
11
12
    public function notifyCreated()
13
    {
14
        /** @var HookLearningPathCreatedObserverInterface $observer */
15
        foreach ($this->observers as $observer) {
16
            $observer->hookCreated($this);
17
        }
18
    }
19
}
20