ListViewOrderBy::setFieldNameOrPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class ListViewOrderBy
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $fieldNameOrPath = null;
11
12
    /**
13
     * @var orderByNullsPosition
14
     */
15
    protected $nullsPosition = null;
16
17
    /**
18
     * @var orderByDirection
19
     */
20
    protected $sortDirection = null;
21
22
    /**
23
     * @param string $fieldNameOrPath
24
     */
25
    public function __construct($fieldNameOrPath = null)
26
    {
27
        $this->fieldNameOrPath = $fieldNameOrPath;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getFieldNameOrPath()
34
    {
35
        return $this->fieldNameOrPath;
36
    }
37
38
    /**
39
     * @param string $fieldNameOrPath
40
     * @return \SForce\Wsdl\ListViewOrderBy
41
     */
42
    public function setFieldNameOrPath($fieldNameOrPath)
43
    {
44
        $this->fieldNameOrPath = $fieldNameOrPath;
45
        return $this;
46
    }
47
48
    /**
49
     * @return orderByNullsPosition
50
     */
51
    public function getNullsPosition()
52
    {
53
        return $this->nullsPosition;
54
    }
55
56
    /**
57
     * @param orderByNullsPosition $nullsPosition
58
     * @return \SForce\Wsdl\ListViewOrderBy
59
     */
60
    public function setNullsPosition($nullsPosition)
61
    {
62
        $this->nullsPosition = $nullsPosition;
63
        return $this;
64
    }
65
66
    /**
67
     * @return orderByDirection
68
     */
69
    public function getSortDirection()
70
    {
71
        return $this->sortDirection;
72
    }
73
74
    /**
75
     * @param orderByDirection $sortDirection
76
     * @return \SForce\Wsdl\ListViewOrderBy
77
     */
78
    public function setSortDirection($sortDirection)
79
    {
80
        $this->sortDirection = $sortDirection;
81
        return $this;
82
    }
83
}
84