Enumeration::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Contains \jamesiarmes\PhpEws\Enumeration.
4
 */
5
6
namespace jamesiarmes\PhpEws;
7
8
/**
9
 * Base class for Exchange Web Service Enumerations.
10
 *
11
 * @package php-ews\Enumeration
12
 */
13
class Enumeration extends Type
14
{
15
    /**
16
     * Element value.
17
     *
18
     * @deprecated 1.0.0
19
     *   This property will be removed in a future release and should not be
20
     *   used. Instead, you should reference the constants implemented in the
21
     *   class directly.
22
     *
23
     * @var string
24
     */
25
    public $_;
26
27
    /**
28
     * Returns the value of this enumeration as a string..
29
     *
30
     * @return string
31
     *
32
     * @suppress PhanDeprecatedProperty
33
     */
34
    public function __toString()
35
    {
36
        return $this->_;
0 ignored issues
show
Deprecated Code introduced by
The property jamesiarmes\PhpEws\Enumeration::$_ has been deprecated with message: 1.0.0 This property will be removed in a future release and should not be used. Instead, you should reference the constants implemented in the class directly.

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
37
    }
38
}
39