User/Company updates

This commit is contained in:
2024-11-29 21:47:37 -05:00
parent eac41ac9fc
commit 8b7f30875b
6 changed files with 71 additions and 1 deletions

View File

@ -199,4 +199,16 @@ class Company
return $this;
}
public function __toString(): string
{
$url = ($this->url ? "<br/><a href='$this->url' target='_blank'>$this->url</a>" : '');
return <<<"HTML"
$this->name<br/>
$this->address<br/>
$this->city, $this->state $this->zip<br/>
<a href='tel:{$this->phone}'>$this->phone</a>
$url
HTML;
}
}