Passed
Push — 1.11.x ( df8c16...f46d87 )
by Angel Fernando Quiroz
08:09 queued 13s
created

HookPortfolioItemViewed::notifyItemViewed()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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