Completed
Push — master ( 21ef4f...df9e52 )
by Alex
04:31
created

AbstractPresenter::getPresenterName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
namespace Mezon\Application;
3
4
/**
5
 * Interface PresenterInterface
6
 *
7
 * @package Application
8
 * @subpackage PresenterInterface
9
 * @author Dodonov A.A.
10
 * @version v.1.0 (2020/06/23)
11
 * @copyright Copyright (c) 2020, aeon.org
12
 */
13
14
/**
15
 * Base class for all presenters
16
 */
17
abstract class AbstractPresenter implements PresenterInterface
18
{
19
20
    /**
21
     * Presenter's name
22
     *
23
     * @var string
24
     */
25
    private $presenterName = '';
26
27
    /**
28
     * Method returns presenter's name
29
     *
30
     * @return string presenter's name
31
     */
32
    public function getPresenterName(): string
33
    {
34
        return $this->presenterName;
35
    }
36
37
    /**
38
     * Method returns presenter's name
39
     *
40
     * @return string presenter's name
41
     */
42
    public function setPresenterName(string $presenterName): void
43
    {
44
        $this->presenterName = $presenterName;
45
    }
46
}
47