QueryResult   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 102
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 19
c 1
b 0
f 0
dl 0
loc 102
rs 10
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A setDone() 0 4 1
A getDone() 0 3 1
A __construct() 0 4 1
A getSize() 0 3 1
A getQueryLocator() 0 3 1
A getRecords() 0 3 1
A setQueryLocator() 0 4 1
A setSize() 0 4 1
A setRecords() 0 4 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class QueryResult
6
{
7
    /**
8
     * @var boolean
9
     */
10
    protected $done = null;
11
12
    /**
13
     * @var QueryLocator
0 ignored issues
show
Bug introduced by
The type SForce\Wsdl\QueryLocator was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
     */
15
    protected $queryLocator = null;
16
17
    /**
18
     * @var sObject[]
19
     */
20
    protected $records = null;
21
22
    /**
23
     * @var int
24
     */
25
    protected $size = null;
26
27
    /**
28
     * @param boolean $done
29
     * @param int $size
30
     */
31
    public function __construct($done = null, $size = null)
32
    {
33
        $this->done = $done;
34
        $this->size = $size;
35
    }
36
37
    /**
38
     * @return boolean
39
     */
40
    public function getDone()
41
    {
42
        return $this->done;
43
    }
44
45
    /**
46
     * @param boolean $done
47
     * @return \SForce\Wsdl\QueryResult
48
     */
49
    public function setDone($done)
50
    {
51
        $this->done = $done;
52
        return $this;
53
    }
54
55
    /**
56
     * @return QueryLocator
57
     */
58
    public function getQueryLocator()
59
    {
60
        return $this->queryLocator;
61
    }
62
63
    /**
64
     * @param QueryLocator $queryLocator
65
     * @return \SForce\Wsdl\QueryResult
66
     */
67
    public function setQueryLocator($queryLocator)
68
    {
69
        $this->queryLocator = $queryLocator;
70
        return $this;
71
    }
72
73
    /**
74
     * @return sObject[]
75
     */
76
    public function getRecords()
77
    {
78
        return $this->records;
79
    }
80
81
    /**
82
     * @param sObject[] $records
83
     * @return \SForce\Wsdl\QueryResult
84
     */
85
    public function setRecords(array $records = null)
86
    {
87
        $this->records = $records;
88
        return $this;
89
    }
90
91
    /**
92
     * @return int
93
     */
94
    public function getSize()
95
    {
96
        return $this->size;
97
    }
98
99
    /**
100
     * @param int $size
101
     * @return \SForce\Wsdl\QueryResult
102
     */
103
    public function setSize($size)
104
    {
105
        $this->size = $size;
106
        return $this;
107
    }
108
}
109