src/MDS/EventsBundle/Entity/Proposal.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\MDS\EventsBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * Proposal
  8.  *
  9.  * @ORM\Table(name="proposals")
  10.  * @ORM\Entity(repositoryClass="App\MDS\EventsBundle\Repository\ProposalRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class Proposal
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="name", type="string", length=255)
  27.      * @Assert\NotBlank()
  28.      *
  29.      */
  30.     private $name;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  35.      */
  36.     private $title;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="commission", type="string", length=255, nullable=true)
  41.      */
  42.     private $commission;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="pax", type="string", length=255)
  47.      * @Assert\NotBlank()
  48.      */
  49.     private $pax;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="bedrooms", type="string", length=255, nullable=true)
  54.      */
  55.     private $bedrooms;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="office_id", type="string", length=255)
  60.      * @Assert\NotBlank()
  61.      */
  62.     private $officeId;
  63.     /**
  64.      * @var int
  65.      *
  66.      * @ORM\Column(name="client_id", type="integer")
  67.      * @Assert\NotBlank()
  68.      *
  69.      */
  70.     private $clientId;
  71.     /**
  72.      * @var int
  73.      *
  74.      * @ORM\Column(name="contact_id", type="integer")
  75.      * @Assert\NotBlank()
  76.      */
  77.     private $contactId;
  78.     /**
  79.      * @var string
  80.      *
  81.      * @ORM\Column(name="reference_name", type="string", nullable=true)
  82.      */
  83.     private $referenceName;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(name="reference_id", type="string", nullable=true)
  88.      */
  89.     private $referenceId;
  90.     /**
  91.      * @var int
  92.      *
  93.      * @ORM\Column(name="agent_id", type="integer", nullable=true)
  94.      */
  95.     private $agentId;
  96.     /**
  97.      * @var int
  98.      *
  99.      * @ORM\Column(name="approximate_billing", type="integer", nullable=true)
  100.      */
  101.     private $approximateBilling;
  102.     /**
  103.      * @var int
  104.      *
  105.      * @ORM\Column(name="team_id", type="integer", nullable=true)
  106.      */
  107.     private $teamId;
  108.     /**
  109.      * @var string
  110.      *
  111.      * @ORM\Column(name="agent_two_id", type="string", nullable=true)
  112.      */
  113.     private $agentTwoId;
  114.     /**
  115.      * @var int
  116.      *
  117.      * @ORM\Column(name="agent_commercial_id", type="integer", nullable=true)
  118.      */
  119.     private $agencommercialId;
  120.     /**
  121.      * @var \DateTime
  122.      *
  123.      * @ORM\Column(name="date_proposed_at", type="datetime", nullable=true)
  124.      */
  125.     private $dateProposedAt;
  126.     /**
  127.      * @var \DateTime
  128.      *
  129.      * @ORM\Column(name="date_event_star_at", type="datetime")
  130.      * @Assert\NotBlank()
  131.      */
  132.     private $dateEventStarAt;
  133.     /**
  134.      * @var \DateTime
  135.      *
  136.      * @ORM\Column(name="date_event_end_at", type="datetime")
  137.      * @Assert\NotBlank()
  138.      */
  139.     private $dateEventEndAt;
  140.     /**
  141.      * @var string
  142.      *
  143.      * @ORM\Column(name="days_email_reminder", type="string", length=255, nullable=true)
  144.      */
  145.     private $daysEmailReminder;
  146.     /**
  147.      * @var string
  148.      *
  149.      * @ORM\Column(name="language", type="string", length=255)
  150.      * @Assert\NotBlank()
  151.      */
  152.     private $language;
  153.     /**
  154.      * @var string
  155.      *
  156.      * @ORM\Column(name="include_logo", type="boolean")
  157.      */
  158.     private $includeLogo;
  159.     /**
  160.      * @var string
  161.      *
  162.      * @ORM\Column(name="version_ppt", type="boolean")
  163.      */
  164.     private $versionPpt;
  165.     /**
  166.      * @var string
  167.      *
  168.      * @ORM\Column(name="version_excel", type="boolean")
  169.      */
  170.     private $versionExcel;
  171.     /**
  172.      * @var string
  173.      *
  174.      * @ORM\Column(name="version_flahs", type="boolean")
  175.      */
  176.     private $versionFlahs;
  177.     /**
  178.      * @var string
  179.      *
  180.      * @ORM\Column(name="version_word", type="boolean")
  181.      */
  182.     private $versionWord;
  183.     /**
  184.      * @var string
  185.      *
  186.      * @ORM\Column(name="briefing", type="text", nullable=true)
  187.      */
  188.     private $briefing;
  189.     /**
  190.      * @var \DateTime
  191.      *
  192.      * @ORM\Column(name="date_presentation_at", type="datetime", nullable=true)
  193.      */
  194.     private $datePresentationAt;
  195.     /**
  196.      * @var string
  197.      *
  198.      * @ORM\Column(name="status", type="string", length=255)
  199.      */
  200.     private $status;
  201.     /**
  202.      * @var string
  203.      *
  204.      * @ORM\Column(name="sent", type="string", length=3, nullable=true)
  205.      */
  206.     private $sent = 'no';
  207.     /**
  208.      * @var string
  209.      *
  210.      * @ORM\Column(name="select_type", type="string", nullable=true)
  211.      */
  212.     private $selectType;
  213.     /**
  214.      * @var \DateTime
  215.      *
  216.      * @ORM\Column(name="created_at", type="datetime")
  217.      */
  218.     private $createdAt;
  219.     /**
  220.      * @var int
  221.      *
  222.      * @ORM\Column(name="created_id", type="integer", nullable=true)
  223.      */
  224.     private $createdId;
  225.     /**
  226.      * @var \DateTime
  227.      *
  228.      * @ORM\Column(name="updated_at", type="datetime")
  229.      */
  230.     private $updatedAt;
  231.     /**
  232.      * @var int
  233.      *
  234.      * @ORM\Column(name="updated_id", type="integer", nullable=true)
  235.      */
  236.     private $updatedId;
  237.     /**
  238.      * @var string
  239.      *
  240.      * @ORM\Column(name="access_key", type="string", length=255, nullable=true)
  241.      */
  242.     private $accessKey;
  243.     /**
  244.      * @var \DateTime
  245.      *
  246.      * @ORM\Column(name="viewed_at", type="datetime", nullable=true)
  247.      */
  248.     private $viewedAt;
  249.     /**
  250.      * @var string
  251.      *
  252.      * @ORM\Column(name="observation", type="text", nullable=true)
  253.      */
  254.     private $observation;
  255.     /**
  256.      * @var string
  257.      *
  258.      * @ORM\Column(name="send_admin", type="string", length=255, nullable=true)
  259.      */
  260.     private $sendAdmin;
  261.     /**
  262.      *@var boolean
  263.      *
  264.      *@ORM\Column(name="mcp", type="boolean", nullable=true)
  265.      */
  266.     private $mcp = '0';
  267.     /**
  268.      * @var integer
  269.      *
  270.      * @ORM\Column(name="image", type="integer", nullable=true)
  271.      */
  272.     private $image;
  273.     /**
  274.      * @var string
  275.      *
  276.      * @ORM\Column(name="category", type="string", length=255, nullable=true)
  277.      * @Assert\NotBlank()
  278.      */
  279.     private $category;
  280.     /**
  281.      * @var int
  282.      *
  283.      * @ORM\Column(name="idMusic", type="integer", nullable=true)
  284.      */
  285.     private $idMusic;
  286.     /**
  287.      * Booleano para determinar si un proposal puede ser cancelado de forma excepcional, si se ha
  288.      * Confirmado o Facturado, no se puede cancelar sin la autorización debida
  289.      * @ORM\Column(type="boolean", nullable=true)
  290.      */
  291.     private $authorizedToCancel = false;
  292.     /**
  293.      * Get id
  294.      *
  295.      * @return int
  296.      */
  297.     public function getId()
  298.     {
  299.         return $this->id;
  300.     }
  301.     /**
  302.      * Set name
  303.      *
  304.      * @param string $name
  305.      *
  306.      * @return Proposal
  307.      */
  308.     public function setName($name)
  309.     {
  310.         $this->name = $name;
  311.         return $this;
  312.     }
  313.     /**
  314.      * Get name
  315.      *
  316.      * @return string
  317.      */
  318.     public function getName()
  319.     {
  320.         return $this->name;
  321.     }
  322.     /**
  323.      * Set title
  324.      *
  325.      * @param string $title
  326.      *
  327.      * @return Proposal
  328.      */
  329.     public function setTitle($title)
  330.     {
  331.         $this->title = $title;
  332.         return $this;
  333.     }
  334.     /**
  335.      * Get title
  336.      *
  337.      * @return string
  338.      */
  339.     public function getTitle()
  340.     {
  341.         return $this->title;
  342.     }
  343.     /**
  344.      * Set commission
  345.      *
  346.      * @param string $commission
  347.      *
  348.      * @return Proposal
  349.      */
  350.     public function setCommission($commission)
  351.     {
  352.         $this->commission = $commission;
  353.         return $this;
  354.     }
  355.     /**
  356.      * Get commission
  357.      *
  358.      * @return string
  359.      */
  360.     public function getCommission()
  361.     {
  362.         return $this->commission;
  363.     }
  364.     /**
  365.      * Set pax
  366.      *
  367.      * @param string $pax
  368.      *
  369.      * @return Proposal
  370.      */
  371.     public function setPax($pax)
  372.     {
  373.         $this->pax = $pax;
  374.         return $this;
  375.     }
  376.     /**
  377.      * Get pax
  378.      *
  379.      * @return string
  380.      */
  381.     public function getPax()
  382.     {
  383.         return $this->pax;
  384.     }
  385.     /**
  386.      * Set bedrooms
  387.      *
  388.      * @param string $bedrooms
  389.      *
  390.      * @return Proposal
  391.      */
  392.     public function setBedrooms($bedrooms)
  393.     {
  394.         $this->bedrooms = $bedrooms;
  395.         return $this;
  396.     }
  397.     /**
  398.      * Get bedrooms
  399.      *
  400.      * @return string
  401.      */
  402.     public function getBedrooms()
  403.     {
  404.         return $this->bedrooms;
  405.     }
  406.     /**
  407.      * Set officeId
  408.      *
  409.      * @param string $officeId
  410.      *
  411.      * @return Proposal
  412.      */
  413.     public function setOfficeId($officeId)
  414.     {
  415.         $this->officeId = $officeId;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get officeId
  420.      *
  421.      * @return string
  422.      */
  423.     public function getOfficeId()
  424.     {
  425.         return $this->officeId;
  426.     }
  427.     /**
  428.      * Set clientId
  429.      *
  430.      * @param integer $clientId
  431.      *
  432.      * @return Proposal
  433.      */
  434.     public function setClientId($clientId)
  435.     {
  436.         $this->clientId = $clientId;
  437.         return $this;
  438.     }
  439.     /**
  440.      * Get clientId
  441.      *
  442.      * @return int
  443.      */
  444.     public function getClientId()
  445.     {
  446.         return $this->clientId;
  447.     }
  448.     /**
  449.      * Set contactId
  450.      *
  451.      * @param integer $contactId
  452.      *
  453.      * @return Proposal
  454.      */
  455.     public function setContactId($contactId)
  456.     {
  457.         $this->contactId = $contactId;
  458.         return $this;
  459.     }
  460.     /**
  461.      * Get contactId
  462.      *
  463.      * @return int
  464.      */
  465.     public function getContactId()
  466.     {
  467.         return $this->contactId;
  468.     }
  469.     /**
  470.      * Set referenceName
  471.      *
  472.      * @param string $referenceName
  473.      *
  474.      * @return Proposal
  475.      */
  476.     public function setReferenceName($referenceName)
  477.     {
  478.         $this->referenceName = $referenceName;
  479.         return $this;
  480.     }
  481.     /**
  482.      * Get referenceName
  483.      *
  484.      * @return string
  485.      */
  486.     public function getReferenceName()
  487.     {
  488.         return $this->referenceName;
  489.     }
  490.     /**
  491.      * Set referenceId
  492.      *
  493.      * @param string $referenceId
  494.      *
  495.      * @return Proposal
  496.      */
  497.     public function setReferenceId($referenceId)
  498.     {
  499.         $this->referenceId = $referenceId;
  500.         return $this;
  501.     }
  502.     /**
  503.      * Get referenceId
  504.      *
  505.      * @return string
  506.      */
  507.     public function getReferenceId()
  508.     {
  509.         return $this->referenceId;
  510.     }
  511.     
  512.     /**
  513.      * Set agentId
  514.      *
  515.      * @param integer $agentId
  516.      *
  517.      * @return Proposal
  518.      */
  519.     public function setAgentId($agentId)
  520.     {
  521.         $this->agentId = $agentId;
  522.         return $this;
  523.     }
  524.     /**
  525.      * Get agentId
  526.      *
  527.      * @return int
  528.      */
  529.     public function getAgentId()
  530.     {
  531.         return $this->agentId;
  532.     }
  533.     /**
  534.      * Set teamId
  535.      *
  536.      * @param integer $teamId
  537.      *
  538.      * @return Proposal
  539.      */
  540.     public function setTeamId($teamId)
  541.     {
  542.         $this->teamId = $teamId;
  543.         return $this;
  544.     }
  545.     /**
  546.      * Get teamId
  547.      *
  548.      * @return int
  549.      */
  550.     public function getTeamId()
  551.     {
  552.         return $this->teamId;
  553.     }
  554.     /**
  555.      * Set agentTwoId
  556.      *
  557.      * @param string $agentTwoId
  558.      *
  559.      * @return Proposal
  560.      */
  561.     public function setAgentTwoId($agentTwoId)
  562.     {
  563.         $this->agentTwoId = $agentTwoId;
  564.         return $this;
  565.     }
  566.     /**
  567.      * Get agentTwoId
  568.      *
  569.      * @return string
  570.      */
  571.     public function getAgentTwoId()
  572.     {
  573.         return $this->agentTwoId;
  574.     }
  575.     /**
  576.      * Set dateProposedAt
  577.      *
  578.      * @param \DateTime $dateProposedAt
  579.      *
  580.      * @return Proposal
  581.      */
  582.     public function setDateProposedAt($dateProposedAt)
  583.     {
  584.         $this->dateProposedAt = $dateProposedAt;
  585.         return $this;
  586.     }
  587.     /**
  588.      * Get dateProposedAt
  589.      *
  590.      * @return \DateTime
  591.      */
  592.     public function getDateProposedAt()
  593.     {
  594.         return $this->dateProposedAt;
  595.     }
  596.     /**
  597.      * Set dateEventStarAt
  598.      *
  599.      * @param \DateTime $dateEventStarAt
  600.      *
  601.      * @return Proposal
  602.      */
  603.     public function setDateEventStarAt($dateEventStarAt)
  604.     {
  605.         $this->dateEventStarAt = $dateEventStarAt;
  606.         return $this;
  607.     }
  608.     /**
  609.      * Get dateEventStarAt
  610.      *
  611.      * @return \DateTime
  612.      */
  613.     public function getDateEventStarAt()
  614.     {
  615.         return $this->dateEventStarAt;
  616.     }
  617.     /**
  618.      * Set dateEventEndAt
  619.      *
  620.      * @param \DateTime $dateEventEndAt
  621.      *
  622.      * @return Proposal
  623.      */
  624.     public function setDateEventEndAt($dateEventEndAt)
  625.     {
  626.         $this->dateEventEndAt = $dateEventEndAt;
  627.         return $this;
  628.     }
  629.     /**
  630.      * Get dateEventEndAt
  631.      *
  632.      * @return \DateTime
  633.      */
  634.     public function getDateEventEndAt()
  635.     {
  636.         return $this->dateEventEndAt;
  637.     }
  638.     /**
  639.      * Set daysEmailReminder
  640.      *
  641.      * @param string $daysEmailReminder
  642.      *
  643.      * @return Proposal
  644.      */
  645.     public function setDaysEmailReminder($daysEmailReminder)
  646.     {
  647.         $this->daysEmailReminder = $daysEmailReminder;
  648.         return $this;
  649.     }
  650.     /**
  651.      * Get daysEmailReminder
  652.      *
  653.      * @return string
  654.      */
  655.     public function getDaysEmailReminder()
  656.     {
  657.         return $this->daysEmailReminder;
  658.     }
  659.     /**
  660.      * Set language
  661.      *
  662.      * @param string $language
  663.      *
  664.      * @return Proposal
  665.      */
  666.     public function setLanguage($language)
  667.     {
  668.         $this->language = $language;
  669.         return $this;
  670.     }
  671.     /**
  672.      * Get language
  673.      *
  674.      * @return string
  675.      */
  676.     public function getLanguage()
  677.     {
  678.         return $this->language;
  679.     }
  680.     /**
  681.      * Set includeLogo
  682.      *
  683.      * @param boolean $includeLogo
  684.      *
  685.      * @return Proposal
  686.      */
  687.     public function setIncludeLogo($includeLogo)
  688.     {
  689.         $this->includeLogo = $includeLogo;
  690.         return $this;
  691.     }
  692.     /**
  693.      * Get includeLogo
  694.      *
  695.      * @return boolean
  696.      */
  697.     public function getIncludeLogo()
  698.     {
  699.         return $this->includeLogo;
  700.     }
  701.     /**
  702.      * Set versionPpt
  703.      *
  704.      * @param boolean $versionPpt
  705.      *
  706.      * @return Proposal
  707.      */
  708.     public function setVersionPpt($versionPpt)
  709.     {
  710.         $this->versionPpt = $versionPpt;
  711.         return $this;
  712.     }
  713.     /**
  714.      * Get versionPpt
  715.      *
  716.      * @return boolean
  717.      */
  718.     public function getVersionPpt()
  719.     {
  720.         return $this->versionPpt;
  721.     }
  722.     /**
  723.      * Set versionExcel
  724.      *
  725.      * @param boolean $versionExcel
  726.      *
  727.      * @return Proposal
  728.      */
  729.     public function setVersionExcel($versionExcel)
  730.     {
  731.         $this->versionExcel = $versionExcel;
  732.         return $this;
  733.     }
  734.     /**
  735.      * Get versionExcel
  736.      *
  737.      * @return boolean
  738.      */
  739.     public function getVersionExcel()
  740.     {
  741.         return $this->versionExcel;
  742.     }
  743.     /**
  744.      * Set versionFlahs
  745.      *
  746.      * @param boolean $versionFlahs
  747.      *
  748.      * @return Proposal
  749.      */
  750.     public function setVersionFlahs($versionFlahs)
  751.     {
  752.         $this->versionFlahs = $versionFlahs;
  753.         return $this;
  754.     }
  755.     /**
  756.      * Get versionFlahs
  757.      *
  758.      * @return boolean
  759.      */
  760.     public function getVersionFlahs()
  761.     {
  762.         return $this->versionFlahs;
  763.     }
  764.     /**
  765.      * Set versionWord
  766.      *
  767.      * @param boolean $versionWord
  768.      *
  769.      * @return Proposal
  770.      */
  771.     public function setVersionWord($versionWord)
  772.     {
  773.         $this->versionWord = $versionWord;
  774.         return $this;
  775.     }
  776.     /**
  777.      * Get versionWord
  778.      *
  779.      * @return boolean
  780.      */
  781.     public function getVersionWord()
  782.     {
  783.         return $this->versionWord;
  784.     }
  785.     /**
  786.      * Set briefing
  787.      *
  788.      * @param string $briefing
  789.      *
  790.      * @return Proposal
  791.      */
  792.     public function setBriefing($briefing)
  793.     {
  794.         $this->briefing = $briefing;
  795.         return $this;
  796.     }
  797.     /**
  798.      * Get briefing
  799.      *
  800.      * @return string
  801.      */
  802.     public function getBriefing()
  803.     {
  804.         return $this->briefing;
  805.     }
  806.     /**
  807.      * Set datePresentationAt
  808.      *
  809.      * @param \DateTime $datePresentationAt
  810.      *
  811.      * @return Proposal
  812.      */
  813.     public function setDatePresentationAt($datePresentationAt)
  814.     {
  815.         $this->datePresentationAt = $datePresentationAt;
  816.         return $this;
  817.     }
  818.     /**
  819.      * Get datePresentationAt
  820.      *
  821.      * @return \DateTime
  822.      */
  823.     public function getDatePresentationAt()
  824.     {
  825.         return $this->datePresentationAt;
  826.     }
  827.     /**
  828.      * Set status
  829.      *
  830.      * @param string $status
  831.      *
  832.      * @return Proposal
  833.      */
  834.     public function setStatus($status)
  835.     {
  836.         $this->status = $status;
  837.         return $this;
  838.     }
  839.     /**
  840.      * Get status
  841.      *
  842.      * @return string
  843.      */
  844.     public function getStatus()
  845.     {
  846.         return $this->status;
  847.     }
  848.     /**
  849.      * Set createdAt
  850.      *
  851.      * @param \DateTime $createdAt
  852.      *
  853.      * @return Proposal
  854.      */
  855.     public function setCreatedAt(\Datetime $createdAt)
  856.     {
  857.         $this->createdAt = $createdAt;
  858.         return $this;
  859.     }
  860.     /**
  861.      * Get createdAt
  862.      *
  863.      * @return \DateTime
  864.      */
  865.     public function getCreatedAt()
  866.     {
  867.         return $this->createdAt;
  868.     }
  869.     /**
  870.      * Set createdId
  871.      *
  872.      * @param integer $createdId
  873.      *
  874.      * @return Proposal
  875.      */
  876.     public function setCreatedId($createdId)
  877.     {
  878.         $this->createdId = $createdId;
  879.         return $this;
  880.     }
  881.     /**
  882.      * Get createdId
  883.      *
  884.      * @return integer
  885.      */
  886.     public function getCreatedId()
  887.     {
  888.         return $this->createdId;
  889.     }
  890.     /**
  891.      * Set updatedAt
  892.      *
  893.      * @param \DateTime $updatedAt
  894.      *
  895.      * @return Proposal
  896.      */
  897.     public function setUpdatedAt(\Datetime $updatedAt)
  898.     {
  899.         $this->updatedAt = $updatedAt;
  900.         return $this;
  901.     }
  902.     /**
  903.      * Get updatedAt
  904.      *
  905.      * @return \DateTime
  906.      */
  907.     public function getUpdatedAt()
  908.     {
  909.         return $this->updatedAt;
  910.     }
  911.     /**
  912.      * Set updatedId
  913.      *
  914.      * @param integer $updatedId
  915.      *
  916.      * @return Proposal
  917.      */
  918.     public function setUpdatedId($updatedId)
  919.     {
  920.         $this->updatedId = $updatedId;
  921.         return $this;
  922.     }
  923.     /**
  924.      * Get updatedId
  925.      *
  926.      * @return integer
  927.      */
  928.     public function getUpdatedId()
  929.     {
  930.         return $this->updatedId;
  931.     }
  932.     /**
  933.      * @ORM\PrePersist
  934.      */
  935.     public function setCreatedAtValue()
  936.     {
  937.         $this->createdAt = new \Datetime();
  938.     }
  939.     /**
  940.      * @ORM\PrePersist
  941.      * @ORM\PreUpdate
  942.      */
  943.     public function setUpdatedAtValue()
  944.     {
  945.         $this->updatedAt = new \Datetime();
  946.     }
  947.     /**
  948.      * Set agencommercialId
  949.      *
  950.      * @param integer $agencommercialId
  951.      *
  952.      * @return Proposal
  953.      */
  954.     public function setAgencommercialId($agencommercialId)
  955.     {
  956.         $this->agencommercialId = $agencommercialId;
  957.         return $this;
  958.     }
  959.     /**
  960.      * Get agencommercialId
  961.      *
  962.      * @return integer
  963.      */
  964.     public function getAgencommercialId()
  965.     {
  966.         return $this->agencommercialId;
  967.     }
  968.     /**
  969.      * Set accessKey
  970.      *
  971.      * @param string $accessKey
  972.      *
  973.      * @return Proposal
  974.      */
  975.     public function setAccessKey($accessKey)
  976.     {
  977.         $this->accessKey = $accessKey;
  978.         return $this;
  979.     }
  980.     /**
  981.      * Get accessKey
  982.      *
  983.      * @return string
  984.      */
  985.     public function getAccessKey()
  986.     {
  987.         return $this->accessKey;
  988.     }
  989.     /**
  990.      * Set viewedAt
  991.      *
  992.      * @param \DateTime $viewedAt
  993.      *
  994.      * @return Proposal
  995.      */
  996.     public function setViewedAt($viewedAt)
  997.     {
  998.         $this->viewedAt = $viewedAt;
  999.         return $this;
  1000.     }
  1001.     /**
  1002.      * Get viewedAt
  1003.      *
  1004.      * @return \DateTime
  1005.      */
  1006.     public function getViewedAt()
  1007.     {
  1008.         return $this->viewedAt;
  1009.     }
  1010.     /**
  1011.      * Set observation
  1012.      *
  1013.      * @param string $observation
  1014.      *
  1015.      * @return Proposal
  1016.      */
  1017.     public function setObservation($observation)
  1018.     {
  1019.         $this->observation = $observation;
  1020.         return $this;
  1021.     }
  1022.     /**
  1023.      * Get observation
  1024.      *
  1025.      * @return string
  1026.      */
  1027.     public function getObservation()
  1028.     {
  1029.         return $this->observation;
  1030.     }
  1031.     /**
  1032.      * Set selectType
  1033.      *
  1034.      * @param string $selectType
  1035.      *
  1036.      * @return Proposal
  1037.      */
  1038.     public function setSelectType($selectType)
  1039.     {
  1040.         $this->selectType = $selectType;
  1041.         return $this;
  1042.     }
  1043.     /**
  1044.      * Get selectType
  1045.      *
  1046.      * @return string
  1047.      */
  1048.     public function getSelectType()
  1049.     {
  1050.         return $this->selectType;
  1051.     }
  1052.     /**
  1053.      * Set sent
  1054.      *
  1055.      * @param string $sent
  1056.      *
  1057.      * @return Proposal
  1058.      */
  1059.     public function setSent($sent)
  1060.     {
  1061.         $this->sent = $sent;
  1062.         return $this;
  1063.     }
  1064.     /**
  1065.      * Get sent
  1066.      *
  1067.      * @return string
  1068.      */
  1069.     public function getSent()
  1070.     {
  1071.         return $this->sent;
  1072.     }
  1073.     /**
  1074.      * Set mcp
  1075.      *
  1076.      * @param boolean $mcp
  1077.      *
  1078.      * @return Proposal
  1079.      */
  1080.     public function setMcp($mcp)
  1081.     {
  1082.         $this->mcp = $mcp;
  1083.         return $this;
  1084.     }
  1085.     /**
  1086.      * Get mcp
  1087.      *
  1088.      * @return boolean
  1089.      */
  1090.     public function getMcp()
  1091.     {
  1092.         return $this->mcp;
  1093.     }
  1094.     /**
  1095.      * Set image
  1096.      *
  1097.      * @param integer $image
  1098.      *
  1099.      * @return Proposal
  1100.      */
  1101.     public function setImage($image)
  1102.     {
  1103.         $this->image = $image;
  1104.         return $this;
  1105.     }
  1106.     /**
  1107.      * Get image
  1108.      *
  1109.      * @return integer
  1110.      */
  1111.     public function getImage()
  1112.     {
  1113.         return $this->image;
  1114.     }
  1115.     /**
  1116.      * Set sendAdmin
  1117.      *
  1118.      * @param string $sendAdmin
  1119.      *
  1120.      * @return Proposal
  1121.      */
  1122.     public function setSendAdmin($sendAdmin)
  1123.     {
  1124.         $this->sendAdmin = $sendAdmin;
  1125.         return $this;
  1126.     }
  1127.     /**
  1128.      * Get sendAdmin
  1129.      *
  1130.      * @return string
  1131.      */
  1132.     public function getSendAdmin()
  1133.     {
  1134.         return $this->sendAdmin;
  1135.     }
  1136.     /**
  1137.      * Set category
  1138.      *
  1139.      * @param string $category
  1140.      *
  1141.      * @return Proposal
  1142.      */
  1143.     public function setCategory($category)
  1144.     {
  1145.         $this->category = $category;
  1146.         return $this;
  1147.     }
  1148.     /**
  1149.      * Get category
  1150.      *
  1151.      * @return string
  1152.      */
  1153.     public function getCategory()
  1154.     {
  1155.         return $this->category;
  1156.     }
  1157.     /**
  1158.      * Set idMusic
  1159.      *
  1160.      * @param integer $idMusic
  1161.      *
  1162.      * @return Proposal
  1163.      */
  1164.     public function setIdMusic($idMusic)
  1165.     {
  1166.         $this->idMusic = $idMusic;
  1167.         return $this;
  1168.     }
  1169.     /**
  1170.      * Get idMusic
  1171.      *
  1172.      * @return integer
  1173.      */
  1174.     public function getIdMusic()
  1175.     {
  1176.         return $this->idMusic;
  1177.     }
  1178.     /**
  1179.      * Set approximateBilling
  1180.      *
  1181.      * @param integer $approximateBilling
  1182.      *
  1183.      * @return Proposal
  1184.      */
  1185.     public function setApproximateBilling($approximateBilling)
  1186.     {
  1187.         $this->approximateBilling = $approximateBilling;
  1188.         return $this;
  1189.     }
  1190.     /**
  1191.      * Get approximateBilling
  1192.      *
  1193.      * @return integer
  1194.      */
  1195.     public function getApproximateBilling()
  1196.     {
  1197.         return $this->approximateBilling;
  1198.     }
  1199.     public function getAuthorizedToCancel(): ?bool
  1200.     {
  1201.         return $this->authorizedToCancel;
  1202.     }
  1203.     public function setAuthorizedToCancel(?bool $authorizedToCancel): self
  1204.     {
  1205.         $this->authorizedToCancel = $authorizedToCancel;
  1206.         return $this;
  1207.     }
  1208.     /**
  1209.      * @ORM\PrePersist
  1210.      */
  1211.     public function setDateProposedAtValue()
  1212.     {
  1213.         $this->dateProposedAt = new \Datetime();
  1214.     }
  1215. }