Completed
Branch master (e6f585)
by Korotkov
06:32 queued 04:46
created

FootballObserver::getObserverName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types = 1);
4
5
/**
6
 * @author    : Korotkov Danila <[email protected]>
7
 * @copyright Copyright (c) 2017, Korotkov Danila
8
 * @license   http://www.gnu.org/licenses/gpl.html GNU GPLv3.0
9
 */
10
11
namespace Behavioral\Observer;
12
13
/**
14
 * Class FootballObserver
15
 *
16
 * @package Behavioral\Observer
17
 */
18
class FootballObserver implements ObserverInterface
19
{
20
21
    /**
22
     * @var string
23
     */
24
    protected $observerName;
25
26
    /**
27
     * FootballObserver constructor.
28
     *
29
     * @param $observerName
30
     */
31
    public function __construct(string $observerName)
32
    {
33
        $this->observerName = $observerName;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getObserverName(): string
40
    {
41
        return $this->observerName;
42
    }
43
}
44