src/Entity/Gos/PasswordFromImport.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Coupon
  6.  *
  7.  * @ORM\Table()
  8.  * @ORM\Entity(repositoryClass="App\Repository\PasswordFromImportRepository")
  9.  * @ORM\HasLifecycleCallbacks
  10.  */
  11. class PasswordFromImport
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var bool
  23.      *
  24.      * @ORM\Column(type="boolean", nullable=true)
  25.      */
  26.     private $isActive;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=false)
  29.      */
  30.     private $email;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=false)
  33.      */
  34.     private $password;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $salt;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=false)
  41.      */
  42.     private $authorizationMethod;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=false)
  45.      */
  46.     private $domain;
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\User", inversedBy="passwordFromImport")
  49.      * @ORM\JoinColumn()
  50.      */
  51.     private $user;
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity="App\Entity\Gos\PortalSettings", inversedBy="passwordFromImport")
  54.      * @ORM\JoinColumn()
  55.      */
  56.     private $portalSettings;
  57.     /**
  58.      * @ORM\Column(type="datetime")
  59.      */
  60.     private $createdAt;
  61.     /**
  62.      * @ORM\Column(type="datetime", nullable=true)
  63.      */
  64.     private $updatedAt;
  65.     /** @ORM\PrePersist() */
  66.     public function prePersist()
  67.     {
  68.         $this->createdAt = new \DateTime();
  69.     }
  70.     /** @ORM\PreUpdate() */
  71.     public function preUpdate()
  72.     {
  73.         $this->updatedAt = new \DateTime();
  74.     }
  75.     public function __toString()
  76.     {
  77.         return (string)$this->id;
  78.     }
  79.     /**
  80.      * Get id
  81.      *
  82.      * @return integer
  83.      */
  84.     public function getId()
  85.     {
  86.         return $this->id;
  87.     }
  88.     /**
  89.      * Set email
  90.      *
  91.      * @param string $email
  92.      *
  93.      * @return PasswordFromImport
  94.      */
  95.     public function setEmail($email)
  96.     {
  97.         $this->email $email;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get email
  102.      *
  103.      * @return string
  104.      */
  105.     public function getEmail()
  106.     {
  107.         return $this->email;
  108.     }
  109.     /**
  110.      * Set password
  111.      *
  112.      * @param string $password
  113.      *
  114.      * @return PasswordFromImport
  115.      */
  116.     public function setPassword($password)
  117.     {
  118.         $this->password $password;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get password
  123.      *
  124.      * @return string
  125.      */
  126.     public function getPassword()
  127.     {
  128.         return $this->password;
  129.     }
  130.     /**
  131.      * Set salt
  132.      *
  133.      * @param string $salt
  134.      *
  135.      * @return PasswordFromImport
  136.      */
  137.     public function setSalt($salt)
  138.     {
  139.         $this->salt $salt;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get salt
  144.      *
  145.      * @return string
  146.      */
  147.     public function getSalt()
  148.     {
  149.         return $this->salt;
  150.     }
  151.     /**
  152.      * Set authorizationMethod
  153.      *
  154.      * @param string $authorizationMethod
  155.      *
  156.      * @return PasswordFromImport
  157.      */
  158.     public function setAuthorizationMethod($authorizationMethod)
  159.     {
  160.         $this->authorizationMethod $authorizationMethod;
  161.         return $this;
  162.     }
  163.     /**
  164.      * Get authorizationMethod
  165.      *
  166.      * @return string
  167.      */
  168.     public function getAuthorizationMethod()
  169.     {
  170.         return $this->authorizationMethod;
  171.     }
  172.     /**
  173.      * Set domain
  174.      *
  175.      * @param string $domain
  176.      *
  177.      * @return PasswordFromImport
  178.      */
  179.     public function setDomain($domain)
  180.     {
  181.         $this->domain $domain;
  182.         return $this;
  183.     }
  184.     /**
  185.      * Get domain
  186.      *
  187.      * @return string
  188.      */
  189.     public function getDomain()
  190.     {
  191.         return $this->domain;
  192.     }
  193.     /**
  194.      * Set createdAt
  195.      *
  196.      * @param \DateTime $createdAt
  197.      *
  198.      * @return PasswordFromImport
  199.      */
  200.     public function setCreatedAt($createdAt)
  201.     {
  202.         $this->createdAt $createdAt;
  203.         return $this;
  204.     }
  205.     /**
  206.      * Get createdAt
  207.      *
  208.      * @return \DateTime
  209.      */
  210.     public function getCreatedAt()
  211.     {
  212.         return $this->createdAt;
  213.     }
  214.     /**
  215.      * Set updatedAt
  216.      *
  217.      * @param \DateTime $updatedAt
  218.      *
  219.      * @return PasswordFromImport
  220.      */
  221.     public function setUpdatedAt($updatedAt)
  222.     {
  223.         $this->updatedAt $updatedAt;
  224.         return $this;
  225.     }
  226.     /**
  227.      * Get updatedAt
  228.      *
  229.      * @return \DateTime
  230.      */
  231.     public function getUpdatedAt()
  232.     {
  233.         return $this->updatedAt;
  234.     }
  235.     /**
  236.      * Set user
  237.      *
  238.      * @param \App\Entity\Gos\User $user
  239.      *
  240.      * @return PasswordFromImport
  241.      */
  242.     public function setUser(\App\Entity\Gos\User $user null)
  243.     {
  244.         $this->user $user;
  245.         return $this;
  246.     }
  247.     /**
  248.      * Get user
  249.      *
  250.      * @return \App\Entity\Gos\User
  251.      */
  252.     public function getUser()
  253.     {
  254.         return $this->user;
  255.     }
  256.     /**
  257.      * Set portalSettings
  258.      *
  259.      * @param \App\Entity\Gos\PortalSettings $portalSettings
  260.      *
  261.      * @return PasswordFromImport
  262.      */
  263.     public function setPortalSettings(\App\Entity\Gos\PortalSettings $portalSettings null)
  264.     {
  265.         $this->portalSettings $portalSettings;
  266.         return $this;
  267.     }
  268.     /**
  269.      * Get portalSettings
  270.      *
  271.      * @return \App\Entity\Gos\PortalSettings
  272.      */
  273.     public function getPortalSettings()
  274.     {
  275.         return $this->portalSettings;
  276.     }
  277.     /**
  278.      * Set isActive
  279.      *
  280.      * @param boolean $isActive
  281.      *
  282.      * @return PasswordFromImport
  283.      */
  284.     public function setIsActive($isActive)
  285.     {
  286.         $this->isActive $isActive;
  287.         return $this;
  288.     }
  289.     /**
  290.      * Get isActive
  291.      *
  292.      * @return boolean
  293.      */
  294.     public function getIsActive()
  295.     {
  296.         return $this->isActive;
  297.     }
  298. }