Manager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 1 1
A __toString() 0 2 1
1
<?php
2
namespace PhpDraft\Domain\Entities;
3
4
class Manager {
5
  /** @var int $manager_id The unique identifier for this manager */
6
  public $manager_id;
7
8
  /** @var int $draft_id Foreign key to the draft this manager belongs to */
9
  public $draft_id;
10
11
  /** @var string $manager_name Textual display name for each manager */
12
  public $manager_name;
13
14
  /** @var int $draft_order The order in which the manager makes a pick in the draft. */
15
  public $draft_order;
16
17
  //For uniqueness checks, use manager name:
18
  public function __toString() {
19
    return $this->manager_name;
20
  }
21
22
  public function __construct() {
23
    //Leaving this here in case other init needs to happen later
24
  }
25
}