Passed
Pull Request — 1.11.x (#4501)
by Angel Fernando Quiroz
09:49
created

HookPortfolioItemHighlighted   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A notifyItemHighlighted() 0 5 2
A __construct() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
class HookPortfolioItemHighlighted extends HookEvent implements HookPortfolioItemHighlightedEventInterface
6
{
7
    protected function __construct()
8
    {
9
        parent::__construct('HookPortfolioItemHighlighted');
10
    }
11
12
    public function notifyItemHighlighted()
13
    {
14
        /** @var HookPortfolioItemHighlightedObserverInterface $observer */
15
        foreach ($this->observers as $observer) {
16
            $observer->hookItemHighlighted($this);
17
        }
18
    }
19
}
20