Koshceyshka

Untitled

Dec 14th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Entities;
  4. use Doctrine\ORM\Annotation;
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * @ORM\Table(name="students")
  9.  * @ORM\Entity(repositoryClass="App\Repository\StudentRepository")
  10.  */
  11. class Student
  12. {
  13.     /**
  14.     * @ORM\Id @ORM\Column(type="integer")
  15.     * @ORM\GeneratedValue
  16.     */
  17.     private $id;
  18.  
  19.     /**
  20.     * @ORM\Column(type="string")
  21.     * @var string
  22.     */
  23.     private $name;
  24.  
  25.     /**
  26.     * @ORM\Column(type="string")
  27.     * @var string
  28.     */
  29.     private $surname;  
  30.  
  31.     /**
  32.     * @ORM\Column(type="string")
  33.     * @var string
  34.     */
  35.     private $gender;
  36.  
  37.     /**
  38.     * @ORM\Column(type="integer")
  39.     * @var integer
  40.     */
  41.     private $age;  
  42.  
  43.     /**
  44.     * @ORM\Column(type="string")
  45.     * @var string
  46.     */
  47.     private $group;
  48.  
  49.  
  50.     /**
  51.     * @ORM\Column(type="string")
  52.     * @var string
  53.     */
  54.     private $faculty;
  55.  
  56.    
  57.     public function getId()
  58.     {
  59.  
  60.         return $this->id;
  61.     }
  62.  
  63.     public function getName(): string
  64.     {
  65.  
  66.         return $this->name;
  67.     }
  68.  
  69.  
  70.     public function setName(string $name): void
  71.     {
  72.  
  73.         $this->name = $name;
  74.  
  75.     }
  76.  
  77.     public function getSurname(): string
  78.     {
  79.  
  80.         return $this->surname;
  81.     }
  82.  
  83.  
  84.     public function setSurname(string $surname): void
  85.     {
  86.  
  87.         $this->surname = $surname;
  88.  
  89.     }
  90.  
  91.  
  92.     public function getGender(): string
  93.     {
  94.  
  95.         return $this->gender;
  96.     }
  97.  
  98.     public function setGender(string $gender): void
  99.     {
  100.  
  101.         $this->gender = $gender;
  102.  
  103.     }
  104.  
  105.     public function getAge(): integer
  106.     {
  107.  
  108.         return $this->age;
  109.     }
  110.  
  111.     public function setAge(integer $age): void
  112.     {
  113.  
  114.         $this->age = $age;
  115.  
  116.     }
  117.  
  118.     public function getGroup(): string
  119.     {
  120.         return $this->group;
  121.     }
  122.  
  123.     public function setGroup(string $group): void
  124.     {
  125.          $this->group = $group;
  126.     }
  127.  
  128.     public function getFaculty(): string
  129.     {
  130.         return $this->faculty;
  131.     }
  132.  
  133.     public function setFaculty(string $faculty): void
  134.     {
  135.         $this->faculty = $faculty;
  136.     }
  137.  
  138. }
  139.  
Advertisement
Add Comment
Please, Sign In to add comment