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|null
  23.      *
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="ftp")
  25.      *
  26.      * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer")
  27.      */
  28.     private $customer;
  29.     /**
  30.      * @var FtpServer|null
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\System\FtpServer")
  33.      *
  34.      * @ORM\JoinColumn(name="id_ftp_server", referencedColumnName="id_ftp_server")
  35.      */
  36.     private $ftpServer;
  37.     /**
  38.      * @var FtpStatus|null
  39.      *
  40.      * @ORM\ManyToOne(targetEntity="App\Entity\System\FtpStatus")
  41.      *
  42.      * @ORM\JoinColumn(name="id_ftp_status", referencedColumnName="id_ftp_status")
  43.      */
  44.     private $ftpStatus;
  45.     /**
  46.      * @var string|null
  47.      *
  48.      * @ORM\Column(type="string", length=64, nullable=true)
  49.      */
  50.     private $user;
  51.     /**
  52.      * @var string|null
  53.      *
  54.      * @ORM\Column(type="string", length=64, nullable=true)
  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.     /**
  75.      * @return Customer|null
  76.      */
  77.     public function getCustomer(): ?Customer
  78.     {
  79.         return $this->customer;
  80.     }
  81.     /**
  82.      * @param Customer|null $customer
  83.      *
  84.      * @return Ftp
  85.      */
  86.     public function setCustomer(?Customer $customer): Ftp
  87.     {
  88.         $this->customer $customer;
  89.         return $this;
  90.     }
  91.     /**
  92.      * @return FtpServer|null
  93.      */
  94.     public function getFtpServer(): ?FtpServer
  95.     {
  96.         return $this->ftpServer;
  97.     }
  98.     /**
  99.      * @param FtpServer|null $ftpServer
  100.      *
  101.      * @return Ftp
  102.      */
  103.     public function setFtpServer(?FtpServer $ftpServer): Ftp
  104.     {
  105.         $this->ftpServer $ftpServer;
  106.         return $this;
  107.     }
  108.     /**
  109.      * @return FtpStatus|null
  110.      */
  111.     public function getFtpStatus(): ?FtpStatus
  112.     {
  113.         return $this->ftpStatus;
  114.     }
  115.     public function setFtpStatus(?FtpStatus $ftpStatus): Ftp
  116.     {
  117.         $this->ftpStatus $ftpStatus;
  118.         return $this;
  119.     }
  120.     /**
  121.      * @return string|null
  122.      */
  123.     public function getUser(): ?string
  124.     {
  125.         return $this->user;
  126.     }
  127.     /**
  128.      * @param string|null $user
  129.      *
  130.      * @return Ftp
  131.      */
  132.     public function setUser(?string $user): Ftp
  133.     {
  134.         $this->user $user;
  135.         return $this;
  136.     }
  137.     /**
  138.      * @return string|null
  139.      */
  140.     public function getPassword(): ?string
  141.     {
  142.         return $this->password;
  143.     }
  144.     /**
  145.      * @param string|null $password
  146.      *
  147.      * @return Ftp
  148.      */
  149.     public function setPassword(?string $password): Ftp
  150.     {
  151.         $this->password $password;
  152.         return $this;
  153.     }
  154. }