CollegeSpec.php 614 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace BotKit\Entities;
  3. // Специальность групп
  4. use BotKit\Enums\State;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity]
  7. #[ORM\Table(name: 'college_spec')]
  8. class CollegeSpec {
  9. #[ORM\Id]
  10. #[ORM\Column(type: 'integer')]
  11. #[ORM\GeneratedValue]
  12. private int|null $id = null;
  13. // Имя группы
  14. #[ORM\Column(type: 'string', length: 8)]
  15. private string $name;
  16. public function getID() {
  17. return $this->id;
  18. }
  19. public function getName() {
  20. return $this->name;
  21. }
  22. public function setName($name) {
  23. $this->name = $name;
  24. }
  25. }