src/Entity/Customer/Customer.php line 16

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Customer;
  4. use Arobases\SyliusProfessionalCustomerPlugin\Model\CustomerInterface;
  5. use Arobases\SyliusProfessionalCustomerPlugin\Model\CustomerTrait;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Sylius\Component\Core\Model\Customer as BaseCustomer;
  8. /**
  9.  * @ORM\Entity
  10.  * @ORM\Table(name="sylius_customer")
  11.  */
  12. class Customer extends BaseCustomer implements CustomerInterface
  13. {
  14.     use CustomerTrait;
  15.     /**
  16.      * @ORM\Column(type="text", nullable=true)
  17.      */
  18.     private ?string $comment null;
  19.     /**
  20.      * ID sur axonaut
  21.      * @ORM\Column(name="company_id", type="string", nullable=true)
  22.      */
  23.     private ?string $companyId null;
  24.     /**
  25.      * ID employee sur axonaut
  26.      * @ORM\Column(name="employee_id", type="string", nullable=true)
  27.      */
  28.     private ?string $employeeId null;
  29.     /**
  30.      * Get the value of comment.
  31.      */
  32.     public function getComment()
  33.     {
  34.         return $this->comment;
  35.     }
  36.     /**
  37.      * Set the value of comment.
  38.      *
  39.      * @return self
  40.      */
  41.     public function setComment($comment)
  42.     {
  43.         $this->comment $comment;
  44.         return $this;
  45.     }
  46.     /**
  47.      * @return string|null
  48.      */
  49.     public function getCompanyId(): ?string
  50.     {
  51.         return $this->companyId;
  52.     }
  53.     /**
  54.      * @param string|null $companyId
  55.      */
  56.     public function setCompanyId(?string $companyId): void
  57.     {
  58.         $this->companyId $companyId;
  59.     }
  60.     /**
  61.      * @return string|null
  62.      */
  63.     public function getEmployeeId(): ?string
  64.     {
  65.         return $this->employeeId;
  66.     }
  67.     /**
  68.      * @param string|null $employeeId
  69.      */
  70.     public function setEmployeeId(?string $employeeId): void
  71.     {
  72.         $this->employeeId $employeeId;
  73.     }
  74. }