src/Entity/System/Ftp.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\System\FtpRepository")
  6.  *
  7.  * @ORM\Table(name="ftp")
  8.  */
  9. class Ftp
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Id
  15.      *
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      *
  18.      * @ORM\Column(type="integer", name="id_ftp",length=11)
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var Customer
  23.      *
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="ftp")
  25.      *
  26.      * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", unique=true, nullable=false)
  27.      */
  28.     private $customer;
  29.     /**
  30.      * @var FtpServer
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\System\FtpServer")
  33.      *
  34.      * @ORM\JoinColumn(name="id_ftp_server", referencedColumnName="id_ftp_server", nullable=false)
  35.      */
  36.     private $ftpServer;
  37.     /**
  38.      * @var FtpStatus
  39.      *
  40.      * @ORM\ManyToOne(targetEntity="App\Entity\System\FtpStatus")
  41.      *
  42.      * @ORM\JoinColumn(name="id_ftp_status", referencedColumnName="id_ftp_status", nullable=false)
  43.      */
  44.     private $ftpStatus;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(type="string", length=64, nullable=false, unique=true)
  49.      */
  50.     private $user;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(type="string", length=64, nullable=false)
  55.      */
  56.     private $password;
  57.     /**
  58.      * @return int
  59.      */
  60.     public function getId(): int
  61.     {
  62.         return $this->id;
  63.     }
  64.     /**
  65.      * @param int $id
  66.      *
  67.      * @return Ftp
  68.      */
  69.     public function setId(int $id): Ftp
  70.     {
  71.         $this->id $id;
  72.         return $this;
  73.     }
  74.     public function getCustomer(): Customer
  75.     {
  76.         return $this->customer;
  77.     }
  78.     public function setCustomer(?Customer $customer): Ftp
  79.     {
  80.         $this->customer $customer;
  81.         return $this;
  82.     }
  83.     public function getFtpServer(): FtpServer
  84.     {
  85.         return $this->ftpServer;
  86.     }
  87.     public function setFtpServer(FtpServer $ftpServer): Ftp
  88.     {
  89.         $this->ftpServer $ftpServer;
  90.         return $this;
  91.     }
  92.     public function getFtpStatus(): FtpStatus
  93.     {
  94.         return $this->ftpStatus;
  95.     }
  96.     public function setFtpStatus(FtpStatus $ftpStatus): Ftp
  97.     {
  98.         $this->ftpStatus $ftpStatus;
  99.         return $this;
  100.     }
  101.     public function getUser(): string
  102.     {
  103.         return $this->user;
  104.     }
  105.     public function setUser(string $user): Ftp
  106.     {
  107.         $this->user $user;
  108.         return $this;
  109.     }
  110.     public function getPassword(): string
  111.     {
  112.         return $this->password;
  113.     }
  114.     public function setPassword(string $password): Ftp
  115.     {
  116.         $this->password $password;
  117.         return $this;
  118.     }
  119. }