Completed
Push — master ( 9b88ad...0d28d4 )
by WEBEWEB
01:51
created

AbstractIcon   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 54
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
A getStyle() 0 3 1
A setName() 0 4 1
A setStyle() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the core-bundle package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\CoreBundle\Icon;
13
14
/**
15
 * Abstract icon.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Bundle\CoreBundle\Icon
19
 * @abstract
20
 */
21
abstract class AbstractIcon implements IconInterface {
22
23
    /**
24
     * Name.
25
     *
26
     * @var string
27
     */
28
    private $name;
29
30
    /**
31
     * Style.
32
     *
33
     * @var string
34
     */
35
    private $style;
36
37
    /**
38
     * Constructor.
39
     */
40
    protected function __construct() {
41
        // NOTHING TO DO.
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getName() {
48
        return $this->name;
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function getStyle() {
55
        return $this->style;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function setName($name) {
62
        $this->name = $name;
63
        return $this;
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69
    public function setStyle($style) {
70
        $this->style = $style;
71
        return $this;
72
    }
73
74
}
75