Completed
Pull Request — develop (#25)
by
unknown
05:29 queued 03:40
created

ResultsMetadata   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 48
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setRecordLimitReached() 0 5 1
A getTotalTime() 0 4 1
A setTotalTime() 0 5 1
A hasRecordLimitReached() 0 4 1
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
}