Sports_Bench_Player

Type

Classes

Section

Players

Sports Bench core class to implement the Sports Bench Player object.

Attributes

  • $player_id, integer, the id of the player
  • $player_first_name, string, the player’s first name
  • $player_last_name, string, the player’s last name
  • $player_photo, string, the url to the player’s photo
  • $player_position, string, the position the player plays
  • $player_home_city, string, the player’s hometown
  • $player_home_state, string, the player’s home state
  • $player_date_of_birth, string, the player’s date of birth
  • $team_id, integer, the team id for the team the player currently plays for
  • $player_weight, integer, the weight of the player
  • $player_height, string, the height of the player
  • $player_slug, string, the slug for the player for url purposes

Constructor

  • Accepts $player_id, integer, parameter
  • Creates the Sports Bench Player object

Class Methods