up: Company

* add vendorId property and methods, may need to add more for reporting data
This commit is contained in:
Ryan Prather 2025-02-09 18:16:14 -05:00
parent c4d1a33272
commit 428304e5af

View File

@ -52,6 +52,9 @@ class Company
#[ORM\Column(type: Types::STRING, length: 255, nullable: true)]
private ?string $companyLogo = null;
#[ORM\Column(length: 64)]
private ?string $vendorId = null;
/**
* @var Collection<int, User>
*/
@ -234,6 +237,18 @@ class Company
return $this;
}
public function getVendorId(): ?string
{
return $this->vendorId;
}
public function setVendorId(string $vendorId): static
{
$this->vendorId = $vendorId;
return $this;
}
public function __toString(): string
{
$url = ($this->url ? "<br/><a href='$this->url' target='_blank'>$this->url</a>" : '');