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.

Unit::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
/**
4
 * @file
5
 * Class Unit
6
 */
7
8
namespace Roomify\Bat\Unit;
9
10
use Roomify\Bat\Unit\AbstractUnit;
11
12
/**
13
 * The basic BAT unit class.
14
 */
15
class Unit extends AbstractUnit {
16
17
  /**
18
   * @param $unit_id
19
   * @param $default_value
20
   * @param $constraints
21
   */
22
  public function __construct($unit_id, $default_value, $constraints = array()) {
23
    $this->unit_id = $unit_id;
24
    $this->default_value = $default_value;
25
    $this->constraints = $constraints;
26
  }
27
28
}
29