You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
900 B
56 lines
900 B
<?php
|
|
namespace model;
|
|
|
|
class Group
|
|
{
|
|
private int $id;
|
|
private int $num;
|
|
private int $year;
|
|
private string $sector;
|
|
|
|
/**
|
|
* @param int $id
|
|
* @param int $num
|
|
* @param int $year
|
|
* @param string $sector
|
|
*/
|
|
public function __construct(int $id, int $num, int $year, string $sector)
|
|
{
|
|
$this->id = $id;
|
|
$this->num = $num;
|
|
$this->year = $year;
|
|
$this->sector = $sector;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getNum(): int
|
|
{
|
|
return $this->num;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getYear(): int
|
|
{
|
|
return $this->year;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getSector(): string
|
|
{
|
|
return $this->sector;
|
|
}
|
|
} |