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

Label   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 50
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A singular() 0 4 1
A plural() 0 4 1
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