ProcessWorkitemRequest   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 57
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getAction() 0 3 1
A getWorkitemId() 0 3 1
A setWorkitemId() 0 4 1
A setAction() 0 4 1
A __construct() 0 5 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class ProcessWorkitemRequest extends ProcessRequest
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $action = null;
11
12
    /**
13
     * @var ID
14
     */
15
    protected $workitemId = null;
16
17
    /**
18
     * @param string $action
19
     * @param ID $workitemId
20
     */
21
    public function __construct($action = null, $workitemId = null)
22
    {
23
        parent::__construct();
24
        $this->action = $action;
25
        $this->workitemId = $workitemId;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getAction()
32
    {
33
        return $this->action;
34
    }
35
36
    /**
37
     * @param string $action
38
     * @return \SForce\Wsdl\ProcessWorkitemRequest
39
     */
40
    public function setAction($action)
41
    {
42
        $this->action = $action;
43
        return $this;
44
    }
45
46
    /**
47
     * @return ID
48
     */
49
    public function getWorkitemId()
50
    {
51
        return $this->workitemId;
52
    }
53
54
    /**
55
     * @param ID $workitemId
56
     * @return \SForce\Wsdl\ProcessWorkitemRequest
57
     */
58
    public function setWorkitemId($workitemId)
59
    {
60
        $this->workitemId = $workitemId;
61
        return $this;
62
    }
63
}
64