src/Entity/AccountOpeningRequest.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Classes\linkRequestStatus;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Class AccountOpeningRequest
  8.  *
  9.  * @ORM\Entity
  10.  * @ORM\Table(name="malys_account_opening_request")
  11.  * @ORM\Entity(repositoryClass="App\Repository\AccountOpeningRequestRepository")
  12.  * @ORM\HasLifecycleCallbacks()
  13.  * @package App\Entity
  14.  */
  15. class AccountOpeningRequest
  16. {
  17.     /**
  18.      * @var integer
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     protected $id;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="lastname", type="string", length=255, nullable=true)
  29.      */
  30.     protected $lastName;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="firstname", type="string", length=255, nullable=true)
  35.      */
  36.     protected $firstName;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="company_name", type="string", length=255, nullable=true)
  41.      */
  42.     protected $companyName;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="brand_name", type="string", length=255, nullable=true)
  47.      */
  48.     protected $brandName;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="email", type="string", length=255, nullable=true)
  53.      */
  54.     protected $email;
  55.     /**
  56.      * @var string
  57.      *
  58.      * @ORM\Column(name="phone", type="string", length=255, nullable=true)
  59.      */
  60.     protected $phone;
  61.     /**
  62.      * @var string
  63.      *
  64.      * @ORM\Column(name="comment", type="string", length=255, nullable=true)
  65.      */
  66.     protected $comment;
  67.     /**
  68.      * @var DateTime
  69.      *
  70.      * @ORM\Column(name="createdAt", type="datetime", nullable=false)
  71.      */
  72.     protected $createdAt;
  73.     /**
  74.      * @var DateTime
  75.      *
  76.      * @ORM\Column(name="updatedAt", type="datetime", nullable=true)
  77.      */
  78.     protected $updatedAt;
  79.     /**
  80.      * @var string
  81.      *
  82.      * @ORM\Column(name="status", type="string", length=255, nullable=false)
  83.      */
  84.     protected $status;
  85.     /**
  86.      * AccountOpening constructor.
  87.      */
  88.     public function __construct()
  89.     {
  90.         $this->status linkRequestStatus::WAITING;
  91.         $this->createdAt = new DateTime();
  92.     }
  93.     /**
  94.      * @return int
  95.      */
  96.     public function getId()
  97.     {
  98.         return $this->id;
  99.     }
  100.     /**
  101.      * @param int $id
  102.      */
  103.     public function setId($id)
  104.     {
  105.         $this->id $id;
  106.     }
  107.     /**
  108.      * @return string
  109.      */
  110.     public function getLastName()
  111.     {
  112.         return $this->lastName;
  113.     }
  114.     /**
  115.      * @param string $lastName
  116.      */
  117.     public function setLastName($lastName)
  118.     {
  119.         $this->lastName $lastName;
  120.     }
  121.     /**
  122.      * @return string
  123.      */
  124.     public function getFirstName()
  125.     {
  126.         return $this->firstName;
  127.     }
  128.     /**
  129.      * @param string $firstName
  130.      */
  131.     public function setFirstName($firstName)
  132.     {
  133.         $this->firstName $firstName;
  134.     }
  135.     /**
  136.      * @return string
  137.      */
  138.     public function getCompanyName()
  139.     {
  140.         return $this->companyName;
  141.     }
  142.     /**
  143.      * @param string $companyName
  144.      */
  145.     public function setCompanyName($companyName)
  146.     {
  147.         $this->companyName $companyName;
  148.     }
  149.     /**
  150.      * @return string
  151.      */
  152.     public function getBrandName()
  153.     {
  154.         return $this->brandName;
  155.     }
  156.     /**
  157.      * @param string $brandName
  158.      */
  159.     public function setBrandName($brandName)
  160.     {
  161.         $this->brandName $brandName;
  162.     }
  163.     /**
  164.      * @return string
  165.      */
  166.     public function getEmail()
  167.     {
  168.         return $this->email;
  169.     }
  170.     /**
  171.      * @param string $email
  172.      */
  173.     public function setEmail($email)
  174.     {
  175.         $this->email $email;
  176.     }
  177.     /**
  178.      * @return string
  179.      */
  180.     public function getPhone()
  181.     {
  182.         return $this->phone;
  183.     }
  184.     /**
  185.      * @param string $phone
  186.      */
  187.     public function setPhone($phone)
  188.     {
  189.         $this->phone $phone;
  190.     }
  191.     /**
  192.      * @return string
  193.      */
  194.     public function getComment()
  195.     {
  196.         return $this->comment;
  197.     }
  198.     /**
  199.      * @param string $comment
  200.      */
  201.     public function setComment($comment)
  202.     {
  203.         $this->comment $comment;
  204.     }
  205.     /**
  206.      * @return DateTime
  207.      */
  208.     public function getCreatedAt()
  209.     {
  210.         return $this->createdAt;
  211.     }
  212.     /**
  213.      * @param DateTime $createdAt
  214.      */
  215.     public function setCreatedAt($createdAt)
  216.     {
  217.         $this->createdAt $createdAt;
  218.     }
  219.     /**
  220.      * @return DateTime
  221.      */
  222.     public function getUpdatedAt()
  223.     {
  224.         return $this->updatedAt;
  225.     }
  226.     /**
  227.      * @param DateTime $updatedAt
  228.      */
  229.     public function setUpdatedAt($updatedAt)
  230.     {
  231.         $this->updatedAt $updatedAt;
  232.     }
  233.     /**
  234.      * @return string
  235.      */
  236.     public function getStatus()
  237.     {
  238.         return $this->status;
  239.     }
  240.     /**
  241.      * @param string $status
  242.      */
  243.     public function setStatus($status)
  244.     {
  245.         $this->status $status;
  246.     }
  247. }