src/Entity/Learners.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LearnersRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\HasLifecycleCallbacks]
  7. #[ORM\Entity(repositoryClassLearnersRepository::class)]
  8. class Learners
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $surname null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $last_name null;
  20.     #[ORM\Column(length11nullabletrue)]
  21.     private ?string $phone null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $email null;
  24.     #[ORM\Column(length20nullabletrue)]
  25.     private ?string $snils null;
  26.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  27.     private ?\DateTimeInterface $birthday null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $position null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $place null;
  32.     #[ORM\Column(name:'date_create',typeTypes::DATETIME_MUTABLE,nullable:false,options:['default'=>'CURRENT_TIMESTAMP'])]//options:['default'->'0'] 
  33.     private ?\DateTimeInterface $dateCreate;
  34.     #[ORM\Column]
  35.     private ?int $moodle_user_id null;
  36.     #[ORM\Column(length40nullabletrue)]
  37.     private ?string $moodle_mail null;
  38.     #[ORM\Column(length20nullabletrue)]
  39.     private ?string $login null;
  40.     #[ORM\Column(length10nullabletrue)]
  41.     private ?string $password null;
  42.     #[ORM\Column(nullabletrue)]
  43.     private ?int $amocrm_id null;
  44.     public function __construct() 
  45.     { 
  46.         $this->dateCreate = new \DateTime("now"); 
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getName(): ?string
  53.     {
  54.         return $this->name;
  55.     }
  56.     public function setName(string $name): self
  57.     {
  58.         $this->name $name;
  59.         return $this;
  60.     }
  61.     public function getSurname(): ?string
  62.     {
  63.         return $this->surname;
  64.     }
  65.     public function setSurname(string $surname): self
  66.     {
  67.         $this->surname $surname;
  68.         return $this;
  69.     }
  70.     public function getLastName(): ?string
  71.     {
  72.         return $this->last_name;
  73.     }
  74.     public function setLastName(string $last_name): self
  75.     {
  76.         $this->last_name $last_name;
  77.         return $this;
  78.     }
  79.     public function getPhone(): ?string
  80.     {
  81.         return $this->phone;
  82.     }
  83.     public function setPhone(string $phone): self
  84.     {
  85.         $this->phone $phone;
  86.         return $this;
  87.     }
  88.     public function getEmail(): ?string
  89.     {
  90.         return $this->email;
  91.     }
  92.     public function setEmail(string $email): self
  93.     {
  94.         $this->email $email;
  95.         return $this;
  96.     }
  97.     public function getSnils(): ?string
  98.     {
  99.         return $this->snils;
  100.     }
  101.     public function setSnils(string $snils): self
  102.     {
  103.         $this->snils $snils;
  104.         return $this;
  105.     }
  106.     public function getBirthday(): ?\DateTimeInterface
  107.     {
  108.         return $this->birthday;
  109.     }
  110.     public function setBirthday(\DateTimeInterface $birthday): self
  111.     {
  112.         $this->birthday $birthday;
  113.         return $this;
  114.     }
  115.     public function getPosition(): ?string
  116.     {
  117.         return $this->position;
  118.     }
  119.     public function setPosition(string $position): self
  120.     {
  121.         $this->position $position;
  122.         return $this;
  123.     }
  124.     public function getPlace(): ?string
  125.     {
  126.         return $this->place;
  127.     }
  128.     public function setPlace(string $place): self
  129.     {
  130.         $this->place $place;
  131.         return $this;
  132.     }
  133.     public function getDateCreate($dateCreate):?\DateTimeInterface
  134.     {
  135.         return $this->dateCreate;
  136.     }
  137.     public function setDateCreate(\DateTimeInterface $dateCreate):self
  138.     {
  139.         $this->$dateCreate $dateCreate;
  140.         return $this;
  141.     }
  142.     public function getMoodleUserId(): ?int
  143.     {
  144.         return $this->moodle_user_id;
  145.     }
  146.     public function setMoodleUserId(int $moodle_user_id): self
  147.     {
  148.         $this->moodle_user_id $moodle_user_id;
  149.         return $this;
  150.     }
  151.     public function getPassword(): ?string
  152.     {
  153.         return $this->password;
  154.     }
  155.     public function setPassword(?string $password): self
  156.     {
  157.         $this->password $password;
  158.         return $this;
  159.     }
  160.     public function getLogin(): ?string
  161.     {
  162.         return $this->login;
  163.     }
  164.     public function setLogin(string $login): self
  165.     {
  166.         $this->login $login;
  167.         return $this;
  168.     }
  169.     public function getMoodleMail(): ?string
  170.     {
  171.         return $this->moodle_mail;
  172.     }
  173.     public function setMoodleMail(?string $moodle_mail): self
  174.     {
  175.         $this->moodle_mail $moodle_mail;
  176.         return $this;
  177.     }
  178.     public function getAmocrmId(): ?int
  179.     {
  180.         return $this->amocrm_id;
  181.     }
  182.     public function setAmocrmId(?int $amocrm_id): self
  183.     {
  184.         $this->amocrm_id $amocrm_id;
  185.         return $this;
  186.     }
  187. }