This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/app/lib/App/Teamtable/Team.php

63 lines
1.3 KiB
PHP
Raw Normal View History

2022-03-02 06:24:27 +00:00
<?php
namespace App\Teamtable;
2022-03-07 06:13:17 +00:00
use \InvalidArgumentException;
2022-03-02 06:24:27 +00:00
/**
2022-03-02 13:26:02 +00:00
* Represents a team in the teamtable database
2022-03-07 06:13:17 +00:00
* TODO: Add validation for setters
2022-03-02 06:24:27 +00:00
*/
class Team
{
2022-03-07 06:13:17 +00:00
public int $id;
public string $name = 'NN';
public string $company = 'NN';
public string $cardnumber = 'NN';
public string $leader = 'NN';
public int $phone = 0;
public int $participants = 0;
public int $rounds = 0;
public function setName(string $name): Self
2022-03-02 13:26:02 +00:00
{
2022-03-07 06:13:17 +00:00
$this->name = $name;
return $this;
2022-03-02 13:26:02 +00:00
}
2022-03-07 06:13:17 +00:00
public function setCompany(string $company): Self
2022-03-02 13:26:02 +00:00
{
2022-03-07 06:13:17 +00:00
$this->company = $company;
return $this;
}
2022-03-02 13:26:02 +00:00
2022-03-07 06:13:17 +00:00
public function setCardnumber(string $cardnumber): Self
{
$this->cardnumber = $cardnumber;
return $this;
}
2022-03-02 13:26:02 +00:00
2022-03-07 06:13:17 +00:00
public function setLeader(string $leader): Self
{
$this->leader = $leader;
return $this;
}
2022-03-02 13:26:02 +00:00
2022-03-07 06:13:17 +00:00
public function setPhone(int $phone): Self
{
$this->phone = $phone;
return $this;
}
2022-03-02 13:26:02 +00:00
2022-03-07 06:13:17 +00:00
public function setParticipants(int $participants): Self
{
$this->participants = $participants;
return $this;
}
2022-03-02 13:26:02 +00:00
2022-03-07 06:13:17 +00:00
public function setRounds(int $rounds): Self
{
$this->rounds = $rounds;
return $this;
2022-03-02 13:26:02 +00:00
}
2022-03-02 06:24:27 +00:00
}