Replacing public properties by getters and setters

This commit is contained in:
Cédric Belin
2018-11-08 23:02:42 +01:00
parent c0653faeb7
commit 9a6599903d
5 changed files with 480 additions and 94 deletions

View File

@ -32,7 +32,7 @@ class Team implements \JsonSerializable {
* @param int $id The team identifier.
* @param string $name The team name.
*/
function __construct(int $id, string $name = '') {
function __construct(int $id, string $name) {
$this->id = $id;
$this->setName($name);
}