OccurrenceType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 83
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 83
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 OccurrenceType type.
9
 */
10
class OccurrenceType extends DataType
11
{
12
    /**
13
     * The first occurrence of the specified day of the week from the beginning
14
     * of the month.
15
     *
16
     * @var integer
17
     */
18
    const FIRST_FROM_BEGINNING = 1;
19
20
    /**
21
     * The second occurrence of the specified day of the week from the beginning
22
     * of the month.
23
     *
24
     * @var integer
25
     */
26
    const SECOND_FROM_BEGINNING = 2;
27
28
    /**
29
     * The third occurrence of the specified day of the week from the beginning
30
     * of the month.
31
     *
32
     * @var integer
33
     */
34
    const THIRD_FROM_BEGINNING = 3;
35
36
    /**
37
     * The fourth occurrence of the specified day of the week from the beginning
38
     * of the month.
39
     *
40
     * @var integer
41
     */
42
    const FOURTH_FROM_BEGINNING = 4;
43
44
    /**
45
     * The first occurrence of the specified day of the week from the end of the
46
     * month.
47
     *
48
     * @var integer
49
     */
50
    const FIRST_FROM_END = -1;
51
52
    /**
53
     * The second occurrence of the specified day of the week from the end of
54
     * the month.
55
     *
56
     * @var integer
57
     */
58
    const SECOND_FROM_END = -2;
59
60
    /**
61
     * The third occurrence of the specified day of the week from the end of the
62
     * month.
63
     *
64
     * @var integer
65
     */
66
    const THIRD_FROM_END = -3;
67
68
    /**
69
     * The fourh occurrence of the specified day of the week from the end of the
70
     * month.
71
     *
72
     * @var integer
73
     */
74
    const FOURTH_FROM_END = -4;
75
76
    /**
77
     * Element value.
78
     *
79
     * @var string
80
     */
81
    public $_;
82
83
    /**
84
     * Returns the value of this object as a string.
85
     *
86
     * @return string
87
     */
88
    public function __toString()
89
    {
90
        return (string) $this->_;
91
    }
92
}
93