Completed
Push — master ( f02869...8251a6 )
by Nicolas
03:31
created

Theme::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php namespace Modules\Core\Foundation\Theme;
2
3
class Theme
4
{
5
    /**
6
     * @var string the theme name
7
     */
8
    private $name;
9
    /**
10
     * @var string the theme path
11
     */
12
    private $path;
13
14
    public function __construct($name, $path)
15
    {
16
        $this->name = $name;
17
        $this->path = realpath($path);
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    public function getName()
24
    {
25
        return ucfirst($this->name);
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getPath()
32
    {
33
        return $this->path;
34
    }
35
36
    /**
37
     * Get name in lower case.
38
     *
39
     * @return string
40
     */
41
    public function getLowerName()
42
    {
43
        return strtolower($this->name);
44
    }
45
}
46