<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\System\FtpRepository")
*
* @ORM\Table(name="ftp")
*/
class Ftp
{
/**
* @var int
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_ftp",length=11)
*/
private $id;
/**
* @var Customer|null
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="ftp")
*
* @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer")
*/
private $customer;
/**
* @var FtpServer|null
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\FtpServer")
*
* @ORM\JoinColumn(name="id_ftp_server", referencedColumnName="id_ftp_server")
*/
private $ftpServer;
/**
* @var FtpStatus|null
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\FtpStatus")
*
* @ORM\JoinColumn(name="id_ftp_status", referencedColumnName="id_ftp_status")
*/
private $ftpStatus;
/**
* @var string|null
*
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $user;
/**
* @var string|null
*
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $password;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*
* @return Ftp
*/
public function setId(int $id): Ftp
{
$this->id = $id;
return $this;
}
/**
* @return Customer|null
*/
public function getCustomer(): ?Customer
{
return $this->customer;
}
/**
* @param Customer|null $customer
*
* @return Ftp
*/
public function setCustomer(?Customer $customer): Ftp
{
$this->customer = $customer;
return $this;
}
/**
* @return FtpServer|null
*/
public function getFtpServer(): ?FtpServer
{
return $this->ftpServer;
}
/**
* @param FtpServer|null $ftpServer
*
* @return Ftp
*/
public function setFtpServer(?FtpServer $ftpServer): Ftp
{
$this->ftpServer = $ftpServer;
return $this;
}
/**
* @return FtpStatus|null
*/
public function getFtpStatus(): ?FtpStatus
{
return $this->ftpStatus;
}
public function setFtpStatus(?FtpStatus $ftpStatus): Ftp
{
$this->ftpStatus = $ftpStatus;
return $this;
}
/**
* @return string|null
*/
public function getUser(): ?string
{
return $this->user;
}
/**
* @param string|null $user
*
* @return Ftp
*/
public function setUser(?string $user): Ftp
{
$this->user = $user;
return $this;
}
/**
* @return string|null
*/
public function getPassword(): ?string
{
return $this->password;
}
/**
* @param string|null $password
*
* @return Ftp
*/
public function setPassword(?string $password): Ftp
{
$this->password = $password;
return $this;
}
}