<?php
namespace App\Entity;
use App\Repository\CustomerPhysicalRepository;
use App\Trait\PersonPhysical;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerPhysicalRepository::class)]
class CustomerPhysical extends Customer
{
use PersonPhysical;
public function __construct()
{
parent::__construct();
}
public function __toString(): string
{
return $this->getName() . ' - BTOC';
}
public function updateName(): void
{
$this->setName($this->firstName . ' ' . $this->lastName);
}
public function getCreditAmountAuthorized() : float
{
return 0;
}
public function getClass() : string {
return "CustomerPhysical";
}
}