src/Domain/Security/DTO/SecurityDTO.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Domain\Security\DTO;
  4. use App\Domain\Common\Entity\Centre;
  5. use App\Domain\Common\Entity\Machine;
  6. class SecurityDTO
  7. {
  8.     private ?string $username null;
  9.     private ?string $password null;
  10.     private ?Centre $centre null;
  11.     private ?Machine $machine null;
  12.     public function getUsername(): ?string
  13.     {
  14.         return $this->username;
  15.     }
  16.     public function setUsername(string $username): void
  17.     {
  18.         $this->username $username;
  19.     }
  20.     public function getPassword(): ?string
  21.     {
  22.         return $this->password;
  23.     }
  24.     public function setPassword(string $password): void
  25.     {
  26.         $this->password $password;
  27.     }
  28.     public function getCentre(): ?Centre
  29.     {
  30.         return $this->centre;
  31.     }
  32.     public function setCentre(Centre $centre): void
  33.     {
  34.         $this->centre $centre;
  35.     }
  36.     public function getMachine(): ?Machine
  37.     {
  38.         return $this->machine;
  39.     }
  40.     public function setMachine(?Machine $machine): void
  41.     {
  42.         $this->machine $machine;
  43.     }
  44. }