Completed
Branch BUG/11288/fix-datepicker (d15367)
by
unknown
108:07 queued 94:31
created

Label::singular()   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
2
3
namespace EventEspresso\core\entities;
4
5
defined('EVENT_ESPRESSO_VERSION') || exit;
6
7
8
9
/**
10
 * Class Label
11
 * super simple DTO for standardizing naming of things
12
 *
13
 * @package       Event Espresso
14
 * @author        Brent Christensen
15
 * @since         $VID:$
16
 */
17
class Label
18
{
19
20
    /**
21
     * @var string $singular
22
     */
23
    public $singular;
24
25
    /**
26
     * @var string $plural
27
     */
28
    public $plural;
29
30
31
32
    /**
33
     * Label constructor.
34
     *
35
     * @param string $singular
36
     * @param string $plural
37
     */
38
    public function __construct($singular, $plural)
39
    {
40
        $this->singular = $singular;
41
        $this->plural = $plural;
42
    }
43
44
45
46
    /**
47
     * @return string
48
     */
49
    public function singular()
50
    {
51
        return $this->singular;
52
    }
53
54
55
56
    /**
57
     * @return string
58
     */
59
    public function plural()
60
    {
61
        return $this->plural;
62
    }
63
64
65
66
}
67
// End of file Label.php
68
// Location: core/entities/Label.php