GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Constraint::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * @file
5
 * Class Constraint
6
 */
7
8
namespace Roomify\Bat\Constraint;
9
10
use Roomify\Bat\Constraint\ConstraintInterface;
11
12
13
/**
14
 * A constraint acts as a filter that can be applied to a Calendar Response to
15
 * further reduce the set of matching units. Constraints allow developers to add
16
 * additional criteria that go beyond the specific value a unit finds itself in for
17
 * a give time range.
18
 */
19
class Constraint extends AbstractConstraint {
20
21
  /**
22
   * @param $units
23
   */
24
  public function __construct($units = array()) {
25
    $this->units = $units;
26
  }
27
28
}
29