| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |