src/Entity/Billing.php line 11
<?phpnamespace App\Entity;use App\Repository\BillingRepository;use App\Traits\Timestamps;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BillingRepository::class)]#[ORM\HasLifecycleCallbacks]class Billing{use Timestamps;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\OneToOne(inversedBy: 'billing', cascade: ['persist', 'remove'])]#[ORM\JoinColumn(nullable: false)]private ?Client $client = null;#[ORM\Column(length: 255)]private ?string $email = null;#[ORM\Column(length: 255)]private ?string $companyName = null;#[ORM\Column(length: 255, nullable: true)]private ?string $billingEmail = null;#[ORM\Column(length: 255)]private ?string $address = null;#[ORM\Column(length: 255, nullable: true)]private ?string $address2 = null;#[ORM\Column(length: 255)]private ?string $city = null;#[ORM\Column(length: 255)]private ?string $country = null;#[ORM\Column(length: 20)]private ?string $postalCode = null;#[ORM\Column(length: 100, nullable: true)]private ?string $businessTaxType = null;#[ORM\Column(length: 100, nullable: true)]private ?string $businessTaxId = null;#[ORM\Column(length: 100, nullable: true)]private ?string $poNumber = null;public function getId(): ?int{return $this->id;}public function getClient(): ?Client{return $this->client;}public function setClient(Client $client): static{$this->client = $client;return $this;}public function getEmail(): ?string{return $this->email;}public function setEmail(string $email): static{$this->email = $email;return $this;}public function getCompanyName(): ?string{return $this->companyName;}public function setCompanyName(string $companyName): static{$this->companyName = $companyName;return $this;}public function getBillingEmail(): ?string{return $this->billingEmail;}public function setBillingEmail(?string $billingEmail): static{$this->billingEmail = $billingEmail;return $this;}public function getAddress(): ?string{return $this->address;}public function setAddress(string $address): static{$this->address = $address;return $this;}public function getCity(): ?string{return $this->city;}public function setCity(string $city): static{$this->city = $city;return $this;}public function getCountry(): ?string{return $this->country;}public function setCountry(string $country): static{$this->country = $country;return $this;}public function getPostalCode(): ?string{return $this->postalCode;}public function setPostalCode(string $postalCode): static{$this->postalCode = $postalCode;return $this;}public function getAddress2(): ?string{return $this->address2;}public function setAddress2(?string $address2): static{$this->address2 = $address2;return $this;}public function getBusinessTaxType(): ?string{return $this->businessTaxType;}public function setBusinessTaxType(?string $businessTaxType): static{$this->businessTaxType = $businessTaxType;return $this;}public function getBusinessTaxId(): ?string{return $this->businessTaxId;}public function setBusinessTaxId(?string $businessTaxId): static{$this->businessTaxId = $businessTaxId;return $this;}public function getPoNumber(): ?string{return $this->poNumber;}public function setPoNumber(?string $poNumber): static{$this->poNumber = $poNumber;return $this;}public function __toString(): string{return $this->companyName ?? 'Billing #' . $this->id;}}