DisposalType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 44
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 44
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
 * Types of deletion for items and folders
9
 */
10
class DisposalType extends DataType
11
{
12
    /**
13
     * Deletes the item irrevocably. Does not move the item to the Deleted Items
14
     * Folder.
15
     *
16
     * @var string
17
     */
18
    const HARD_DELETE = 'HardDelete';
19
20
    /**
21
     * Does not actually delete the item, but instead simply moves it to the
22
     * Deleted Items folder.
23
     *
24
     * @var string
25
     */
26
    const MOVE_TO_DELETED_ITEMS = 'MoveToDeletedItems';
27
28
    /**
29
     * "Deletes" the item so that it is no longer visible in the folder, but
30
     * actually still exists there. Avoid using this because there is nothing
31
     * that you can do with soft-deleted items from EWS aside from finding them.
32
     *
33
     * @var string
34
     */
35
    const SOFT_DELETE = 'SoftDelete';
36
37
    /**
38
     * Element value.
39
     *
40
     * @var string
41
     */
42
    public $_;
43
44
    /**
45
     * Returns the value of this object as a string.
46
     *
47
     * @return string
48
     */
49
    public function __toString()
50
    {
51
        return $this->_;
52
    }
53
}
54