File: /var/www/vhost/disk-apps/demo.sports-crowd.com/app/Core/Payment/Entities/Student.php
<?php
declare(strict_types=1);
namespace App\Core\Payment\Entities;
class Student
{
private $id;
private $document;
private $code;
private $locationName;
public function __construct(
int $id,
string $document,
?string $code = null,
?string $locationName = null
) {
$this->id = $id;
$this->document = $document;
$this->code = $code;
$this->locationName = $locationName;
}
public function id(): int
{
return $this->id;
}
public function document(): string
{
return $this->document;
}
public function code(): ?string
{
return $this->code;
}
public function setCode(string $code): void
{
$this->code = $code;
}
public function locationName(): ?string
{
return $this->locationName;
}
public function setLocationName(?string $locationName): void
{
$this->locationName = $locationName;
}
}