src/OfficeBrain/Bundle/SubShopBundle/Entity/SubShopInquiry.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\SubShopBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * SubShopInquiry.
  7.  *
  8.  * @ORM\Table("tbl_sub_shop_inquiry")
  9.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\SubShopBundle\Entity\SubShopInquiryRepository")
  10.  */
  11. class SubShopInquiry
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="bigint", options={"unsigned":true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="first_name", type="string", length=255)
  25.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  26.      */
  27.     private $firstName;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="last_name", type="string", length=255)
  32.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  33.      */
  34.     private $lastName;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="company_name", type="string", length=255)
  39.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  40.      */
  41.     private $companyName;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="address_line1", type="string", length=255)
  46.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  47.      */
  48.     private $addressLine1;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="address_line2", type="string", length=255, nullable=true)
  53.      */
  54.     private $addressLine2;
  55.     /**
  56.      * @var string
  57.      *
  58.      * @ORM\Column(name="city", type="string", length=255)
  59.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  60.      */
  61.     private $city;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="state", type="string", length=255)
  66.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  67.      */
  68.     private $state;
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="country", type="string", length=255)
  73.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  74.      */
  75.     private $country;
  76.     /**
  77.      * @var string
  78.      *
  79.      * @ORM\Column(name="zip_code", type="string", length=50)
  80.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  81.      */
  82.     private $zipCode;
  83.     /**
  84.      * @var string
  85.      *
  86.      * @ORM\Column(name="phone", type="string", length=50)
  87.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  88.      * @Assert\Regex("^((((\(\d{3}\))|(\d{3}-))\d{3}((-| )\d{1,8}){1,5}))(( x| ext)\d{1,5}){0,1}$^",message="subshop_inquiry.form.invalid_phone")
  89.      */
  90.     private $phone;
  91.     /**
  92.      * @var string
  93.      *
  94.      * @ORM\Column(name="fax", type="string", length=50, nullable=true)
  95.      * @Assert\Regex("^((((\(\d{3}\))|(\d{3}-))\d{3}((-| )\d{1,8}){1,5}))(( x| ext)\d{1,5}){0,1}$^",message="subshop_inquiry.form.invalid_fax")
  96.      */
  97.     private $fax;
  98.     /**
  99.      * @var string
  100.      *
  101.      * @ORM\Column(name="email", type="string", length=255)
  102.      * @Assert\NotBlank(message="subshop_inquiry.form.not_blank")
  103.      *
  104.      * @Assert\Regex(
  105.      *     pattern = "(^\s*[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9}\s*$)",
  106.      *     message = "subshop_inquiry.form.email.valid"
  107.      * )
  108.      *
  109.      * @Assert\Email(
  110.      *     message = "subshop_inquiry.form.email.valid",
  111.      * )
  112.      */
  113.     private $email;
  114.     /**
  115.      * @var string
  116.      *
  117.      * @ORM\Column(name="industry_type", type="string", length=255, nullable=true)
  118.      */
  119.     private $industryType;
  120.     /**
  121.      * @var string
  122.      *
  123.      * @ORM\Column(name="employee_length", type="string", length=50, nullable=true)
  124.      */
  125.     private $employeeLength;
  126.     /**
  127.      * @var string
  128.      *
  129.      * @ORM\Column(name="annual_budget", type="string", length=50, nullable=true)
  130.      */
  131.     private $annualBudget;
  132.     /**
  133.      * @var string
  134.      *
  135.      * @ORM\Column(name="product_range", type="string", length=50, nullable=true)
  136.      */
  137.     private $productRange;
  138.     /**
  139.      * @var string
  140.      *
  141.      * @ORM\Column(name="shop_type", type="string", length=50, nullable=true)
  142.      */
  143.     private $shopType;
  144.     /**
  145.      * @var bool
  146.      *
  147.      * @ORM\Column(name="has_shop", type="boolean", nullable=true)
  148.      */
  149.     private $hasShop;
  150.     /**
  151.      * @var string
  152.      *
  153.      * @ORM\Column(name="shop_link", type="text", nullable=true)
  154.      */
  155.     private $shopLink;
  156.     /**
  157.      * @var string
  158.      *
  159.      * @ORM\Column(name="anticipate_shop_roll_out", type="string", length=255, nullable=true)
  160.      */
  161.     private $anticipateShopRollOut;
  162.     /**
  163.      * @var string
  164.      *
  165.      * @ORM\Column(name="comments", type="text", nullable=true)
  166.      */
  167.     private $comments;
  168.     /**
  169.      * @var int
  170.      *
  171.      * @ORM\Column(name="instance_id", type="integer", nullable=true)
  172.      */
  173.     private $instanceId;
  174.     /**
  175.      * @var string
  176.      *
  177.      * @ORM\Column(name="instance_type", type="string", length=255, nullable=true)
  178.      */
  179.     private $instanceType;
  180.     /**
  181.      * @var int
  182.      *          // Null = no status
  183.      *          // 0    = On Hold
  184.      *          // 1    = Approve
  185.      *          // 2    = Reject
  186.      * @ORM\Column(name="status", type="integer", nullable=true)
  187.      */
  188.     private $status;
  189.     /**
  190.      * @var int
  191.      *
  192.      * @ORM\Column(name="created_uid", type="integer", nullable=true)
  193.      */
  194.     private $createdUid;
  195.     /**
  196.      * @var int
  197.      *
  198.      * @ORM\Column(name="updated_uid", type="integer", nullable=true)
  199.      */
  200.     private $updatedUid;
  201.     /**
  202.      * @var int
  203.      *
  204.      * @ORM\Column(name="deleted_uid", type="integer", nullable=true)
  205.      */
  206.     private $deletedUid;
  207.     /**
  208.      * @var \DateTime
  209.      *
  210.      * @ORM\Column(name="created_at", type="datetime")
  211.      */
  212.     private $createdAt;
  213.     /**
  214.      * @var \DateTime
  215.      *
  216.      * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  217.      */
  218.     private $updatedAt;
  219.     /**
  220.      * @var \DateTime
  221.      *
  222.      * @ORM\Column(name="deleted_at", type="datetime", nullable=true)
  223.      */
  224.     private $deletedAt;
  225.     public function __construct()
  226.     {
  227.         $this->createdAt = new \DateTime();
  228.     }
  229.     /**
  230.      * Get id.
  231.      *
  232.      * @return int
  233.      */
  234.     public function getId()
  235.     {
  236.         return $this->id;
  237.     }
  238.     /**
  239.      * Set firstName.
  240.      *
  241.      * @param string $firstName
  242.      *
  243.      * @return SubShopInquiry
  244.      */
  245.     public function setFirstName($firstName)
  246.     {
  247.         $this->firstName $firstName;
  248.         return $this;
  249.     }
  250.     /**
  251.      * Get firstName.
  252.      *
  253.      * @return string
  254.      */
  255.     public function getFirstName()
  256.     {
  257.         return $this->firstName;
  258.     }
  259.     /**
  260.      * Set lastName.
  261.      *
  262.      * @param string $lastName
  263.      *
  264.      * @return SubShopInquiry
  265.      */
  266.     public function setLastName($lastName)
  267.     {
  268.         $this->lastName $lastName;
  269.         return $this;
  270.     }
  271.     /**
  272.      * Get lastName.
  273.      *
  274.      * @return string
  275.      */
  276.     public function getLastName()
  277.     {
  278.         return $this->lastName;
  279.     }
  280.     /**
  281.      * Set companyName.
  282.      *
  283.      * @param string $companyName
  284.      *
  285.      * @return SubShopInquiry
  286.      */
  287.     public function setCompanyName($companyName)
  288.     {
  289.         $this->companyName $companyName;
  290.         return $this;
  291.     }
  292.     /**
  293.      * Get companyName.
  294.      *
  295.      * @return string
  296.      */
  297.     public function getCompanyName()
  298.     {
  299.         return $this->companyName;
  300.     }
  301.     /**
  302.      * Set addressLine1.
  303.      *
  304.      * @param string $addressLine1
  305.      *
  306.      * @return SubShopInquiry
  307.      */
  308.     public function setAddressLine1($addressLine1)
  309.     {
  310.         $this->addressLine1 $addressLine1;
  311.         return $this;
  312.     }
  313.     /**
  314.      * Get addressLine1.
  315.      *
  316.      * @return string
  317.      */
  318.     public function getAddressLine1()
  319.     {
  320.         return $this->addressLine1;
  321.     }
  322.     /**
  323.      * Set addressLine2.
  324.      *
  325.      * @param string $addressLine2
  326.      *
  327.      * @return SubShopInquiry
  328.      */
  329.     public function setAddressLine2($addressLine2)
  330.     {
  331.         $this->addressLine2 $addressLine2;
  332.         return $this;
  333.     }
  334.     /**
  335.      * Get addressLine2.
  336.      *
  337.      * @return string
  338.      */
  339.     public function getAddressLine2()
  340.     {
  341.         return $this->addressLine2;
  342.     }
  343.     /**
  344.      * Set city.
  345.      *
  346.      * @param string $city
  347.      *
  348.      * @return SubShopInquiry
  349.      */
  350.     public function setCity($city)
  351.     {
  352.         $this->city $city;
  353.         return $this;
  354.     }
  355.     /**
  356.      * Get city.
  357.      *
  358.      * @return string
  359.      */
  360.     public function getCity()
  361.     {
  362.         return $this->city;
  363.     }
  364.     /**
  365.      * Set state.
  366.      *
  367.      * @param string $state
  368.      *
  369.      * @return SubShopInquiry
  370.      */
  371.     public function setState($state)
  372.     {
  373.         $this->state $state;
  374.         return $this;
  375.     }
  376.     /**
  377.      * Get state.
  378.      *
  379.      * @return string
  380.      */
  381.     public function getState()
  382.     {
  383.         return $this->state;
  384.     }
  385.     /**
  386.      * Set country.
  387.      *
  388.      * @param string $country
  389.      *
  390.      * @return SubShopInquiry
  391.      */
  392.     public function setCountry($country)
  393.     {
  394.         $this->country $country;
  395.         return $this;
  396.     }
  397.     /**
  398.      * Get country.
  399.      *
  400.      * @return string
  401.      */
  402.     public function getCountry()
  403.     {
  404.         return $this->country;
  405.     }
  406.     /**
  407.      * Set zipCode.
  408.      *
  409.      * @param string $zipCode
  410.      *
  411.      * @return SubShopInquiry
  412.      */
  413.     public function setZipCode($zipCode)
  414.     {
  415.         $this->zipCode $zipCode;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get zipCode.
  420.      *
  421.      * @return string
  422.      */
  423.     public function getZipCode()
  424.     {
  425.         return $this->zipCode;
  426.     }
  427.     /**
  428.      * Set phone.
  429.      *
  430.      * @param string $phone
  431.      *
  432.      * @return SubShopInquiry
  433.      */
  434.     public function setPhone($phone)
  435.     {
  436.         $this->phone $phone;
  437.         return $this;
  438.     }
  439.     /**
  440.      * Get phone.
  441.      *
  442.      * @return string
  443.      */
  444.     public function getPhone()
  445.     {
  446.         return $this->phone;
  447.     }
  448.     /**
  449.      * Set fax.
  450.      *
  451.      * @param string $fax
  452.      *
  453.      * @return SubShopInquiry
  454.      */
  455.     public function setFax($fax)
  456.     {
  457.         $this->fax $fax;
  458.         return $this;
  459.     }
  460.     /**
  461.      * Get fax.
  462.      *
  463.      * @return string
  464.      */
  465.     public function getFax()
  466.     {
  467.         return $this->fax;
  468.     }
  469.     /**
  470.      * Set email.
  471.      *
  472.      * @param string $email
  473.      *
  474.      * @return SubShopInquiry
  475.      */
  476.     public function setEmail($email)
  477.     {
  478.         $this->email $email;
  479.         return $this;
  480.     }
  481.     /**
  482.      * Get email.
  483.      *
  484.      * @return string
  485.      */
  486.     public function getEmail()
  487.     {
  488.         return $this->email;
  489.     }
  490.     /**
  491.      * Set industryType.
  492.      *
  493.      * @param string $industryType
  494.      *
  495.      * @return SubShopInquiry
  496.      */
  497.     public function setIndustryType($industryType)
  498.     {
  499.         $this->industryType $industryType;
  500.         return $this;
  501.     }
  502.     /**
  503.      * Get industryType.
  504.      *
  505.      * @return string
  506.      */
  507.     public function getIndustryType()
  508.     {
  509.         return $this->industryType;
  510.     }
  511.     /**
  512.      * Set employeeLength.
  513.      *
  514.      * @param string $employeeLength
  515.      *
  516.      * @return SubShopInquiry
  517.      */
  518.     public function setEmployeeLength($employeeLength)
  519.     {
  520.         $this->employeeLength $employeeLength;
  521.         return $this;
  522.     }
  523.     /**
  524.      * Get employeeLength.
  525.      *
  526.      * @return string
  527.      */
  528.     public function getEmployeeLength()
  529.     {
  530.         return $this->employeeLength;
  531.     }
  532.     /**
  533.      * Set annualBudget.
  534.      *
  535.      * @param string $annualBudget
  536.      *
  537.      * @return SubShopInquiry
  538.      */
  539.     public function setAnnualBudget($annualBudget)
  540.     {
  541.         $this->annualBudget $annualBudget;
  542.         return $this;
  543.     }
  544.     /**
  545.      * Get annualBudget.
  546.      *
  547.      * @return string
  548.      */
  549.     public function getAnnualBudget()
  550.     {
  551.         return $this->annualBudget;
  552.     }
  553.     /**
  554.      * Set productRange.
  555.      *
  556.      * @param string $productRange
  557.      *
  558.      * @return SubShopInquiry
  559.      */
  560.     public function setProductRange($productRange)
  561.     {
  562.         $this->productRange $productRange;
  563.         return $this;
  564.     }
  565.     /**
  566.      * Get productRange.
  567.      *
  568.      * @return string
  569.      */
  570.     public function getProductRange()
  571.     {
  572.         return $this->productRange;
  573.     }
  574.     /**
  575.      * Set shopType.
  576.      *
  577.      * @param string $shopType
  578.      *
  579.      * @return SubShopInquiry
  580.      */
  581.     public function setShopType($shopType)
  582.     {
  583.         $this->shopType $shopType;
  584.         return $this;
  585.     }
  586.     /**
  587.      * Get shopType.
  588.      *
  589.      * @return string
  590.      */
  591.     public function getShopType()
  592.     {
  593.         return $this->shopType;
  594.     }
  595.     /**
  596.      * Set hasShop.
  597.      *
  598.      * @param bool $hasShop
  599.      *
  600.      * @return SubShopInquiry
  601.      */
  602.     public function setHasShop($hasShop)
  603.     {
  604.         $this->hasShop $hasShop;
  605.         return $this;
  606.     }
  607.     /**
  608.      * Get hasShop.
  609.      *
  610.      * @return bool
  611.      */
  612.     public function getHasShop()
  613.     {
  614.         return $this->hasShop;
  615.     }
  616.     /**
  617.      * Set shopLink.
  618.      *
  619.      * @param string $shopLink
  620.      *
  621.      * @return SubShopInquiry
  622.      */
  623.     public function setShopLink($shopLink)
  624.     {
  625.         $this->shopLink $shopLink;
  626.         return $this;
  627.     }
  628.     /**
  629.      * Get shopLink.
  630.      *
  631.      * @return string
  632.      */
  633.     public function getShopLink()
  634.     {
  635.         return $this->shopLink;
  636.     }
  637.     /**
  638.      * Set anticipateShopRollOut.
  639.      *
  640.      * @param string $anticipateShopRollOut
  641.      *
  642.      * @return SubShopInquiry
  643.      */
  644.     public function setAnticipateShopRollOut($anticipateShopRollOut)
  645.     {
  646.         $this->anticipateShopRollOut $anticipateShopRollOut;
  647.         return $this;
  648.     }
  649.     /**
  650.      * Get anticipateShopRollOut.
  651.      *
  652.      * @return string
  653.      */
  654.     public function getAnticipateShopRollOut()
  655.     {
  656.         return $this->anticipateShopRollOut;
  657.     }
  658.     /**
  659.      * Set comments.
  660.      *
  661.      * @param string $comments
  662.      *
  663.      * @return SubShopInquiry
  664.      */
  665.     public function setComments($comments)
  666.     {
  667.         $this->comments $comments;
  668.         return $this;
  669.     }
  670.     /**
  671.      * Get comments.
  672.      *
  673.      * @return string
  674.      */
  675.     public function getComments()
  676.     {
  677.         return $this->comments;
  678.     }
  679.     /**
  680.      * Set instanceId.
  681.      *
  682.      * @param int $instanceId
  683.      *
  684.      * @return SubShopInquiry
  685.      */
  686.     public function setInstanceId($instanceId)
  687.     {
  688.         $this->instanceId $instanceId;
  689.         return $this;
  690.     }
  691.     /**
  692.      * Get instanceId.
  693.      *
  694.      * @return int
  695.      */
  696.     public function getInstanceId()
  697.     {
  698.         return $this->instanceId;
  699.     }
  700.     /**
  701.      * Set createdAt.
  702.      *
  703.      * @param \DateTime $createdAt
  704.      *
  705.      * @return SubShopInquiry
  706.      */
  707.     public function setCreatedAt($createdAt)
  708.     {
  709.         $this->createdAt $createdAt;
  710.         return $this;
  711.     }
  712.     /**
  713.      * Get createdAt.
  714.      *
  715.      * @return \DateTime
  716.      */
  717.     public function getCreatedAt()
  718.     {
  719.         return $this->createdAt;
  720.     }
  721.     /**
  722.      * Set updatedAt.
  723.      *
  724.      * @param \DateTime $updatedAt
  725.      *
  726.      * @return SubShopInquiry
  727.      */
  728.     public function setUpdatedAt($updatedAt)
  729.     {
  730.         $this->updatedAt $updatedAt;
  731.         return $this;
  732.     }
  733.     /**
  734.      * Get updatedAt.
  735.      *
  736.      * @return \DateTime
  737.      */
  738.     public function getUpdatedAt()
  739.     {
  740.         return $this->updatedAt;
  741.     }
  742.     /**
  743.      * Set status.
  744.      *
  745.      * @param int $status
  746.      *
  747.      * @return SubShopInquiry
  748.      */
  749.     public function setStatus($status)
  750.     {
  751.         $this->status $status;
  752.         return $this;
  753.     }
  754.     /**
  755.      * Get status.
  756.      *
  757.      * @return int
  758.      */
  759.     public function getStatus()
  760.     {
  761.         return $this->status;
  762.     }
  763.     /**
  764.      * Set deletedAt.
  765.      *
  766.      * @param \DateTime $deletedAt
  767.      *
  768.      * @return SubShopInquiry
  769.      */
  770.     public function setDeletedAt($deletedAt)
  771.     {
  772.         $this->deletedAt $deletedAt;
  773.         return $this;
  774.     }
  775.     /**
  776.      * Get deletedAt.
  777.      *
  778.      * @return \DateTime
  779.      */
  780.     public function getDeletedAt()
  781.     {
  782.         return $this->deletedAt;
  783.     }
  784.     /**
  785.      * Set instanceType.
  786.      *
  787.      * @param string $instanceType
  788.      *
  789.      * @return SubShopInquiry
  790.      */
  791.     public function setInstanceType($instanceType)
  792.     {
  793.         $this->instanceType $instanceType;
  794.         return $this;
  795.     }
  796.     /**
  797.      * Get instanceType.
  798.      *
  799.      * @return string
  800.      */
  801.     public function getInstanceType()
  802.     {
  803.         return $this->instanceType;
  804.     }
  805.     /**
  806.      * Set createdUid.
  807.      *
  808.      * @param int $createdUid
  809.      *
  810.      * @return SubShopInquiry
  811.      */
  812.     public function setCreatedUid($createdUid)
  813.     {
  814.         $this->createdUid $createdUid;
  815.         return $this;
  816.     }
  817.     /**
  818.      * Get createdUid.
  819.      *
  820.      * @return int
  821.      */
  822.     public function getCreatedUid()
  823.     {
  824.         return $this->createdUid;
  825.     }
  826.     /**
  827.      * Set updatedUid.
  828.      *
  829.      * @param int $updatedUid
  830.      *
  831.      * @return SubShopInquiry
  832.      */
  833.     public function setUpdatedUid($updatedUid)
  834.     {
  835.         $this->updatedUid $updatedUid;
  836.         return $this;
  837.     }
  838.     /**
  839.      * Get updatedUid.
  840.      *
  841.      * @return int
  842.      */
  843.     public function getUpdatedUid()
  844.     {
  845.         return $this->updatedUid;
  846.     }
  847.     /**
  848.      * Set deletedUid.
  849.      *
  850.      * @param int $deletedUid
  851.      *
  852.      * @return SubShopInquiry
  853.      */
  854.     public function setDeletedUid($deletedUid)
  855.     {
  856.         $this->deletedUid $deletedUid;
  857.         return $this;
  858.     }
  859.     /**
  860.      * Get deletedUid.
  861.      *
  862.      * @return int
  863.      */
  864.     public function getDeletedUid()
  865.     {
  866.         return $this->deletedUid;
  867.     }
  868. }