src/Entity/XeroUser.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\XeroUserRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassXeroUserRepository::class)]
  6. class XeroUser
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'xeroUsers')]
  13.     private ?User $user null;
  14.     #[ORM\Column(length64)]
  15.     private ?string $xeroUserId null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $email null;
  18.     #[ORM\Column(length64)]
  19.     private ?string $firstName null;
  20.     #[ORM\Column(length128nullabletrue)]
  21.     private ?string $lastName null;
  22.     #[ORM\Column(length16)]
  23.     private ?string $role null;
  24.     
  25.     #[ORM\Column(length64)]
  26.     private ?string $tenantId null;
  27.     #[ORM\Column]
  28.     private ?\DateTimeImmutable $createdAt null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?\DateTimeImmutable $updatedAt null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     
  36.     public function getUser(): ?User
  37.     {
  38.         return $this->user;
  39.     }
  40.     public function setUser(?User $user): self
  41.     {
  42.         $this->user $user;
  43.         return $this;
  44.     }
  45.     public function getXeroUserId(): ?string
  46.     {
  47.         return $this->xeroUserId;
  48.     }
  49.     public function setXeroUserId(string $xeroUserId): self
  50.     {
  51.         $this->xeroUserId $xeroUserId;
  52.         return $this;
  53.     }
  54.     public function getEmail(): ?string
  55.     {
  56.         return $this->email;
  57.     }
  58.     public function setEmail(string $email): self
  59.     {
  60.         $this->email $email;
  61.         return $this;
  62.     }
  63.     public function getFirstName(): ?string
  64.     {
  65.         return $this->firstName;
  66.     }
  67.     public function setFirstName(string $firstName): self
  68.     {
  69.         $this->firstName $firstName;
  70.         return $this;
  71.     }
  72.     public function getLastName(): ?string
  73.     {
  74.         return $this->lastName;
  75.     }
  76.     public function setLastName(?string $lastName): self
  77.     {
  78.         $this->lastName $lastName;
  79.         return $this;
  80.     }
  81.     public function getRole(): ?string
  82.     {
  83.         return $this->role;
  84.     }
  85.     public function setRole(string $role): self
  86.     {
  87.         $this->role $role;
  88.         return $this;
  89.     }
  90.     public function getTenantId(): ?string
  91.     {
  92.         return $this->tenantId;
  93.     }
  94.     public function setTenantId(string $tenantId): self
  95.     {
  96.         $this->tenantId $tenantId;
  97.         return $this;
  98.     }
  99.     public function getCreatedAt(): ?\DateTimeImmutable
  100.     {
  101.         return $this->createdAt;
  102.     }
  103.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  104.     {
  105.         $this->createdAt $createdAt;
  106.         return $this;
  107.     }
  108.     public function getUpdatedAt(): ?\DateTimeImmutable
  109.     {
  110.         return $this->updatedAt;
  111.     }
  112.     public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
  113.     {
  114.         $this->updatedAt $updatedAt;
  115.         return $this;
  116.     }
  117. }