DayOfWeekType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 89
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
1
<?php
2
3
namespace PhpEws\DataType;
4
5
use PhpEws\DataType;
6
7
/**
8
 * Definition of the DayOfWeekType type.
9
 */
10
class DayOfWeekType extends DataType
11
{
12
    /**
13
     * Represents Sunday.
14
     *
15
     * @var string
16
     */
17
    const SUNDAY = 'Sunday';
18
19
    /**
20
     * Represents Monday.
21
     *
22
     * @var string
23
     */
24
    const MONDAY = 'Monday';
25
26
    /**
27
     * Represents Tuesday.
28
     *
29
     * @var string
30
     */
31
    const TUESDAY = 'Tuesday';
32
33
    /**
34
     * Represents Wednesday.
35
     *
36
     * @var string
37
     */
38
    const WEDNESDAY = 'Wednesday';
39
40
    /**
41
     * Represents Thursday.
42
     *
43
     * @var string
44
     */
45
    const THURSDAY = 'Thursday';
46
47
    /**
48
     * Represents Friday.
49
     *
50
     * @var string
51
     */
52
    const FRIDAY = 'Friday';
53
54
    /**
55
     * Represents Saturday.
56
     *
57
     * @var string
58
     */
59
    const SATURDAY = 'Saturday';
60
61
    /**
62
     * Represents a day of the week.
63
     *
64
     * @var string
65
     */
66
    const DAY = 'Day';
67
68
    /**
69
     * Represents a weekday.
70
     *
71
     * @var string
72
     */
73
    const WEEKDAY = 'Weekday';
74
75
    /**
76
     * Represents a weekend day.
77
     *
78
     * @var string
79
     */
80
    const WEEKENDDAY = 'WeekendDay';
81
82
    /**
83
     * Element value.
84
     *
85
     * @var string
86
     */
87
    public $_;
88
89
    /**
90
     * Returns the value of this object as a string.
91
     *
92
     * @return string
93
     */
94
    public function __toString()
95
    {
96
        return $this->_;
97
    }
98
}
99