User/Company updates
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user