<?php
namespace App\Entity;
use App\Repository\XeroUserRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: XeroUserRepository::class)]
class XeroUser
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'xeroUsers')]
private ?User $user = null;
#[ORM\Column(length: 64)]
private ?string $xeroUserId = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
#[ORM\Column(length: 64)]
private ?string $firstName = null;
#[ORM\Column(length: 128, nullable: true)]
private ?string $lastName = null;
#[ORM\Column(length: 16)]
private ?string $role = null;
#[ORM\Column(length: 64)]
private ?string $tenantId = null;
#[ORM\Column]
private ?\DateTimeImmutable $createdAt = null;
#[ORM\Column(nullable: true)]
private ?\DateTimeImmutable $updatedAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getXeroUserId(): ?string
{
return $this->xeroUserId;
}
public function setXeroUserId(string $xeroUserId): self
{
$this->xeroUserId = $xeroUserId;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
public function getRole(): ?string
{
return $this->role;
}
public function setRole(string $role): self
{
$this->role = $role;
return $this;
}
public function getTenantId(): ?string
{
return $this->tenantId;
}
public function setTenantId(string $tenantId): self
{
$this->tenantId = $tenantId;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeImmutable $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
}