src/Entity/CustomerPhysical.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerPhysicalRepository;
  4. use App\Trait\PersonPhysical;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCustomerPhysicalRepository::class)]
  7. class CustomerPhysical extends Customer
  8. {
  9.     use PersonPhysical;
  10.     public function __construct()
  11.     {
  12.         parent::__construct();
  13.     }
  14.     public function __toString(): string
  15.     {
  16.         return $this->getName() . ' - BTOC';
  17.     }
  18.     public function updateName(): void
  19.     {
  20.         $this->setName($this->firstName ' ' $this->lastName);
  21.     }
  22.     public function getCreditAmountAuthorized() : float
  23.     {
  24.         return 0;
  25.     }
  26.     public function getClass()  : string {
  27.         return "CustomerPhysical";
  28.     }
  29. }