Team.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. class Team
  3. {
  4. private int $teamId;
  5. private string $teamName;
  6. private int $countryId;
  7. private string $countryName;
  8. private int $teamLeagueId;
  9. private string $teamLeague;
  10. public function __construct(
  11. $teamId,
  12. $teamName,
  13. $countryId,
  14. $countryName,
  15. $teamLeagueId,
  16. $teamLeague
  17. ) {
  18. $this->teamId = $teamId;
  19. $this->teamName = $teamName;
  20. $this->countryId = $countryId;
  21. $this->countryName = $countryName;
  22. $this->teamLeagueId = $teamLeagueId;
  23. $this->teamLeague = $teamLeague;
  24. }
  25. // Getters and Setters
  26. public function getTeamId()
  27. {
  28. return $this->teamId;
  29. }
  30. public function setTeamId($teamId)
  31. {
  32. $this->teamId = $teamId;
  33. }
  34. public function getTeamName()
  35. {
  36. return $this->teamName;
  37. }
  38. public function setTeamName($teamName)
  39. {
  40. $this->teamName = $teamName;
  41. }
  42. public function getCountryId()
  43. {
  44. return $this->countryId;
  45. }
  46. public function setCountryId($countryId)
  47. {
  48. $this->countryId = $countryId;
  49. }
  50. public function getCountryName()
  51. {
  52. return $this->countryName;
  53. }
  54. public function setCountryName($countryName)
  55. {
  56. $this->countryName = $countryName;
  57. }
  58. public function getTeamLeagueId()
  59. {
  60. return $this->teamLeagueId;
  61. }
  62. public function setTeamLeagueId($teamLeagueId)
  63. {
  64. $this->teamLeagueId = $teamLeagueId;
  65. }
  66. public function getTeamLeague()
  67. {
  68. return $this->teamLeague;
  69. }
  70. public function setTeamLeague($teamLeague)
  71. {
  72. $this->teamLeague = $teamLeague;
  73. }
  74. }