src/Entity/ExternalCompany.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ExternalCompanyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ExternalCompanyRepository::class)
  7.  */
  8. class ExternalCompany extends Company
  9. {
  10.     /**
  11.      * @ORM\Column(type="string", length=255, nullable=true)
  12.      */
  13.     protected $code;
  14.     public function getCode(): ?string
  15.     {
  16.         return $this->code;
  17.     }
  18.     public function setCode(?string $code): self
  19.     {
  20.         $this->code $code;
  21.         return $this;
  22.     }
  23. }