<?php
namespace App\Entity\Gos;
use Doctrine\ORM\Mapping as ORM;
/**
* Coupon
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Repository\PasswordFromImportRepository")
* @ORM\HasLifecycleCallbacks
*/
class PasswordFromImport
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var bool
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $isActive;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $password;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $salt;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $authorizationMethod;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $domain;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Gos\User", inversedBy="passwordFromImport")
* @ORM\JoinColumn()
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Gos\PortalSettings", inversedBy="passwordFromImport")
* @ORM\JoinColumn()
*/
private $portalSettings;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/** @ORM\PrePersist() */
public function prePersist()
{
$this->createdAt = new \DateTime();
}
/** @ORM\PreUpdate() */
public function preUpdate()
{
$this->updatedAt = new \DateTime();
}
public function __toString()
{
return (string)$this->id;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set email
*
* @param string $email
*
* @return PasswordFromImport
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set password
*
* @param string $password
*
* @return PasswordFromImport
*/
public function setPassword($password)
{
$this->password = $password;
return $this;
}
/**
* Get password
*
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Set salt
*
* @param string $salt
*
* @return PasswordFromImport
*/
public function setSalt($salt)
{
$this->salt = $salt;
return $this;
}
/**
* Get salt
*
* @return string
*/
public function getSalt()
{
return $this->salt;
}
/**
* Set authorizationMethod
*
* @param string $authorizationMethod
*
* @return PasswordFromImport
*/
public function setAuthorizationMethod($authorizationMethod)
{
$this->authorizationMethod = $authorizationMethod;
return $this;
}
/**
* Get authorizationMethod
*
* @return string
*/
public function getAuthorizationMethod()
{
return $this->authorizationMethod;
}
/**
* Set domain
*
* @param string $domain
*
* @return PasswordFromImport
*/
public function setDomain($domain)
{
$this->domain = $domain;
return $this;
}
/**
* Get domain
*
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return PasswordFromImport
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return PasswordFromImport
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set user
*
* @param \App\Entity\Gos\User $user
*
* @return PasswordFromImport
*/
public function setUser(\App\Entity\Gos\User $user = null)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return \App\Entity\Gos\User
*/
public function getUser()
{
return $this->user;
}
/**
* Set portalSettings
*
* @param \App\Entity\Gos\PortalSettings $portalSettings
*
* @return PasswordFromImport
*/
public function setPortalSettings(\App\Entity\Gos\PortalSettings $portalSettings = null)
{
$this->portalSettings = $portalSettings;
return $this;
}
/**
* Get portalSettings
*
* @return \App\Entity\Gos\PortalSettings
*/
public function getPortalSettings()
{
return $this->portalSettings;
}
/**
* Set isActive
*
* @param boolean $isActive
*
* @return PasswordFromImport
*/
public function setIsActive($isActive)
{
$this->isActive = $isActive;
return $this;
}
/**
* Get isActive
*
* @return boolean
*/
public function getIsActive()
{
return $this->isActive;
}
}