Passed
Push — master ( c03365...9d1091 )
by Alex
07:25
created

TOnActionType   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 55
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getDocumentation() 0 3 1
A setDocumentation() 0 4 1
A setAction() 0 4 1
A getAction() 0 3 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl;
4
5
/**
6
 * Class representing TOnActionType
7
 *
8
 *
9
 * XSD Type: TOnAction
10
 */
11
class TOnActionType
12
{
13
14
    /**
15
     * @property string $action
16
     */
17
    private $action = null;
18
19
    /**
20
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
21
     */
22
    private $documentation = null;
23
24
    /**
25
     * Gets as action
26
     *
27
     * @return string
28
     */
29
    public function getAction()
30
    {
31
        return $this->action;
32
    }
33
34
    /**
35
     * Sets a new action
36
     *
37
     * @param string $action
38
     * @return self
39
     */
40
    public function setAction($action)
41
    {
42
        $this->action = $action;
43
        return $this;
44
    }
45
46
    /**
47
     * Gets as documentation
48
     *
49
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType
50
     */
51
    public function getDocumentation()
52
    {
53
        return $this->documentation;
54
    }
55
56
    /**
57
     * Sets a new documentation
58
     *
59
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TDocumentationType $documentation
60
     * @return self
61
     */
62
    public function setDocumentation(TDocumentationType $documentation)
63
    {
64
        $this->documentation = $documentation;
65
        return $this;
66
    }
67
}
68