Pick   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 14
dl 0
loc 43
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 1 1
1
<?php
2
namespace PhpDraft\Domain\Entities;
3
4
//Previously known as "Player_Object" - renamed "Pick" to reduce my own confusion
5
/**
6
* @property string $manager_name Name of the manager that made the pick. NOTE: Only available on selected picks, and is kind've a cheat.
7
* @property bool $on_the_clock If the current pick is the one "on the clock" in an in-progress draft
8
* @property int $search_score
9
* @property bool $selected If this pick has been selected yet - driven from if $pick_time is null or not
10
*/
11
class Pick {
12
  public function __construct() {
13
    //Leaving this here in case further init needs to occur
14
  }
15
16
  /** @var int */
17
  public $player_id;
18
19
  /** @var int The ID of the manager this player belongs to */
20
  public $manager_id;
21
22
  /** @var int The ID of the draft this player belongs to */
23
  public $draft_id;
24
25
  /** @var string */
26
  public $first_name;
27
28
  /** @var string */
29
  public $last_name;
30
31
  /** @var string The professional team the player plays for. Stored as three character abbreviation */
32
  public $team;
33
34
  /** @var string The position the player plays. Stored as one to three character abbreviation. */
35
  public $position;
36
  
37
  /** @var int The counter value indicating in what order this pick was edited in relation to the entire draft */
38
  public $player_counter;
39
40
  /** @var string Timestamp of when the player was picked. Use strtotime to convert for comparisons, NULL for undrafted */
41
  public $pick_time;
42
43
  /** @var int Amount of seconds that were consumed during this pick since previous pick */
44
  public $pick_duration;
45
46
  /** @var int Round the player was selected in */
47
  public $player_round;
48
49
  /** @var int Pick the player was selected at */
50
  public $player_pick;
51
52
  /** @var int Depth Chart Position Id FK to the depth chart position table */
53
  public $depth_chart_position_id;
54
}