Completed
Pull Request — develop (#25)
by
unknown
03:54 queued 01:46
created

ResultsMetadata::hasRecordLimitReached()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace GroupByInc\API\Model;
4
5
class ResultsMetadata
6
{
7
  /**
8
   * @var boolean
9
   */
10
  private $recordLimitReached;
11
12
  /**
13
   * @var long
14
   */
15
  private $totalTime;
16
17
  /**
18
   * @return boolean  True if the total record count is actually greater than the returned record count in the response, false otherwise
19
   */
20
  public function hasRecordLimitReached()
21
  {
22
    return $this->recordLimitReached;
23
  }
24
25
  /**
26
   * @param recordLimitReached    Whether the total record count is actually greater than the returned record count
27
   * @return                      This ResultsMetadata object
28
   */
29
  public function setRecordLimitReached($recordLimitReached)
30
  {
31
    $this->recordLimitReached = $recordLimitReached;
0 ignored issues
show
Documentation Bug introduced by
It seems like $recordLimitReached of type object<GroupByInc\API\Model\Whether> is incompatible with the declared type boolean of property $recordLimitReached.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
32
    return $this;
33
  }
34
35
  /**
36
   * @return long  The total time spent in milliseconds
37
   */
38
  public function getTotalTime()
39
  {
40
    return $this->totalTime;
41
  }
42
43
  /**
44
   * @param totalTime    The total time spent in milliseconds to generate results
45
   * @return             This ResultsMetadata object
46
   */
47
  public function setTotalTime($totalTime)
48
  {
49
    $this->totalTime = $totalTime;
0 ignored issues
show
Documentation Bug introduced by
It seems like $totalTime of type object<GroupByInc\API\Model\The> is incompatible with the declared type object<GroupByInc\API\Model\long> of property $totalTime.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
50
    return $this;
51
  }
52
}
53
54
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...