Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Starter
  3.  *
  4.  * @ORM\Table("starters")
  5.  * @ORM\Entity(repositoryClass="Jubana\CatalogBundle\Repository\StarterRepository")
  6.  */
  7. class Starter
  8. {
  9.     /**
  10.      * @var integer
  11.      *
  12.      * @ORM\Column(name="id", type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     private $id;
  17.  
  18.     /**
  19.      * @var integer
  20.      *
  21.      * @ORM\Column(name="serial", type="integer", unique=true)
  22.      */
  23.     private $serial;
  24.  
  25.     /**
  26.      * @var integer
  27.      *
  28.      * @ORM\Column(name="voltage", type="smallint")
  29.      */
  30.     private $voltage;
  31.  
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="power", type="string")
  36.      */
  37.     private $power;
  38.  
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="rotation", type="string")
  43.      */
  44.     private $rotation;
  45.  
  46.     /**
  47.      * @var integer;
  48.      *
  49.      * @ORM\Column(name="teeth", type="smallint")
  50.      */
  51.     private $teeth;
  52.  
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="module", type="string")
  57.      */
  58.     private $module;
  59.  
  60.     /**
  61.      * @var string
  62.      *
  63.      * @ORM\Column(name="b_terminal", type="string")
  64.      */
  65.     private $b_terminal;
  66.  
  67.     /**
  68.      * @var string
  69.      *
  70.      * @ORM\Column(name="comment", type="text")
  71.      */
  72.     private $comment;
  73.     /**
  74.      * @var string
  75.      *
  76.      * @ORM\Column(name="commenten", type="text")
  77.      */
  78.     private $commenten;
  79.     /**
  80.      * @var string
  81.      *
  82.      * @ORM\Column(name="commentru", type="text")
  83.      */
  84.     private $commentru;
  85.     /**
  86.      * @var string
  87.      *
  88.      * @ORM\Column(name="commentpl", type="text")
  89.      */
  90.     private $commentpl;
  91.     /**
  92.      * @var string
  93.      *
  94.      * @ORM\Column(name="commentde", type="text")
  95.      */
  96.     private $commentde;
  97.     /**
  98.      * @var string
  99.      *
  100.      * @ORM\Column(name="commentes", type="text")
  101.      */
  102.     private $commentes;
  103.     /**
  104.      * @var string
  105.      *
  106.      * @ORM\Column(name="type", type="text")
  107.      */
  108.     protected $type;
  109.  
  110.     /**
  111.      * @var string
  112.      *
  113.      * @ORM\Column(name="adaptation", type="text")
  114.      */
  115.     protected $usage;
  116.  
  117.     /**
  118.      * @var integer
  119.      *
  120.      * @ORM\Column(name="alternative_product_1", type="integer")
  121.      */
  122.     private $alternative_product_1;
  123.  
  124.     /**
  125.      * @var integer
  126.      *
  127.      * @ORM\Column(name="alternative_product_2", type="integer")
  128.      */
  129.     private $alternative_product_2;
  130.  
  131.     /**
  132.      * @var integer
  133.      *
  134.      * @ORM\Column(name="alternative_product_3", type="integer")
  135.      */
  136.     private $alternative_product_3;
  137.  
  138.     /**
  139.      * @var integer
  140.      *
  141.      * @ORM\Column(name="alternative_product_4", type="integer")
  142.      */
  143.     private $alternative_product_4;
  144.  
  145.     /**
  146.      * @var boolean
  147.      *
  148.      * @ORM\Column(name="active", type="boolean")
  149.      */
  150.     protected $active;
  151.  
  152.     /**
  153.      * @var ArrayCollection
  154.      *
  155.      * @ORM\ManyToMany(targetEntity="Nnteam\ImageBundle\Entity\Image")
  156.      * @ORM\JoinTable(name="starters_images")
  157.      */
  158.     protected $images;
  159.  
  160.     /**
  161.      * @var ArrayCollection
  162.      *
  163.      * @ORM\ManyToMany(targetEntity="Nnteam\ImageBundle\Entity\Image")
  164.      * @ORM\JoinTable(name="starters_drafts")
  165.      */
  166.     protected $drafts;
  167.  
  168.     /**
  169.      * @var ArrayCollection
  170.      *
  171.      * @ORM\ManyToMany(targetEntity="StarterReference", inversedBy="starters")
  172.      * @ORM\JoinTable(name="starters_references")
  173.      */
  174.     protected $references;
  175.  
  176.     /**
  177.      * @var ArrayCollection
  178.      *
  179.      * @ORM\ManyToMany(targetEntity="StarterApplication", inversedBy="starters")
  180.      * @ORM\JoinTable(name="starters_applications")
  181.      */
  182.     protected $applications;
  183.  
  184.     /**
  185.      * @var ArrayCollection
  186.      *
  187.      * @ORM\ManyToMany(targetEntity="StarterApplication", inversedBy="starters")
  188.      * @ORM\JoinTable(name="manufacturer")
  189.      */
  190.     protected $manufacturer;
  191.  
  192.     /**
  193.      * @var ArrayCollection
  194.      *
  195.      * @ORM\ManyToMany(targetEntity="Nnteam\TagBundle\Entity\Tag")
  196.      * @ORM\JoinTable(name="starters_tags")
  197.      */
  198.     protected $tags;
  199.  
  200.     /**
  201.      * Constructor
  202.      */
  203.     public function __construct()
  204.     {
  205.         $this->types = new ArrayCollection();
  206.         $this->images = new ArrayCollection();
  207.         $this->drafts = new ArrayCollection();
  208.         $this->references = new ArrayCollection();
  209.         $this->applications = new ArrayCollection();
  210.         $this->tags = new ArrayCollection();
  211.     }
  212.  
  213.     /**
  214.      * To string magic method
  215.      *
  216.      * @return string
  217.      */
  218.     public function __toString()
  219.     {
  220.         return (string)$this->getSerial();
  221.     }
  222.  
  223.     /**
  224.      * Get id
  225.      *
  226.      * @return integer
  227.      */
  228.     public function getId()
  229.     {
  230.         return $this->id;
  231.     }
  232.  
  233.     /**
  234.      * Set serial
  235.      *
  236.      * @param integer $serial
  237.      * @return Starter
  238.      */
  239.     public function setSerial($serial)
  240.     {
  241.         $this->serial = $serial;
  242.  
  243.         return $this;
  244.     }
  245.  
  246.     /**
  247.      * Get serial
  248.      *
  249.      * @return integer
  250.      */
  251.     public function getSerial()
  252.     {
  253.         return $this->serial;
  254.     }
  255.  
  256.     /**
  257.      * Set voltage
  258.      *
  259.      * @param integer $voltage
  260.      * @return Starter
  261.      */
  262.     public function setVoltage($voltage)
  263.     {
  264.         $this->voltage = $voltage;
  265.  
  266.         return $this;
  267.     }
  268.  
  269.     /**
  270.      * Get voltage
  271.      *
  272.      * @return integer
  273.      */
  274.     public function getVoltage()
  275.     {
  276.         return $this->voltage;
  277.     }
  278.  
  279.     /**
  280.      * Set power
  281.      *
  282.      * @param string $power
  283.      * @return Starter
  284.      */
  285.     public function setPower($power)
  286.     {
  287.         $this->power = $power;
  288.  
  289.         return $this;
  290.     }
  291.  
  292.     /**
  293.      * Get power
  294.      *
  295.      * @return string
  296.      */
  297.     public function getPower()
  298.     {
  299.         return $this->power;
  300.     }
  301.  
  302.     /**
  303.      * Set rotation
  304.      *
  305.      * @param string $rotation
  306.      * @return Starter
  307.      */
  308.     public function setRotation($rotation)
  309.     {
  310.         $this->rotation = $rotation;
  311.  
  312.         return $this;
  313.     }
  314.  
  315.     /**
  316.      * Get rotation
  317.      *
  318.      * @return string
  319.      */
  320.     public function getRotation()
  321.     {
  322.         return $this->rotation;
  323.     }
  324.  
  325.     /**
  326.      * Set teeth
  327.      *
  328.      * @param int $teeth
  329.      * @return Starter
  330.      */
  331.     public function setTeeth($teeth)
  332.     {
  333.         $this->teeth = $teeth;
  334.  
  335.         return $this;
  336.     }
  337.  
  338.     /**
  339.      * Get teeth
  340.      *
  341.      * @return int
  342.      */
  343.     public function getTeeth()
  344.     {
  345.         return $this->teeth;
  346.     }
  347.  
  348.     /**
  349.      * Set module
  350.      *
  351.      * @param string $module
  352.      * @return Starter
  353.      */
  354.     public function setModule($module)
  355.     {
  356.         $this->module = $module;
  357.  
  358.         return $this;
  359.     }
  360.  
  361.     /**
  362.      * Get module
  363.      *
  364.      * @return string
  365.      */
  366.     public function getModule()
  367.     {
  368.         return $this->module;
  369.     }
  370.  
  371.     /**
  372.      * Set b_terminal
  373.      *
  374.      * @param string $b_terminal
  375.      * @return Starter
  376.      */
  377.     public function setBTerminal($b_terminal)
  378.     {
  379.         $this->b_terminal = $b_terminal;
  380.  
  381.         return $this;
  382.     }
  383.  
  384.     /**
  385.      * Get b_terminal
  386.      *
  387.      * @return string
  388.      */
  389.     public function getBTerminal()
  390.     {
  391.         return $this->b_terminal;
  392.     }
  393.  
  394.     /**
  395.      * Set comment
  396.      *
  397.      * @param string $comment
  398.      * @return Starter
  399.      */
  400.     public function setComment($comment)
  401.     {
  402.         $this->comment = $comment;
  403.  
  404.         return $this;
  405.     }
  406.     public function setCommenten($comment)
  407.     {
  408.         $this->commenten = $comment;
  409.  
  410.         return $this;
  411.     }
  412.     public function setCommentru($comment)
  413.     {
  414.         $this->commentru = $comment;
  415.  
  416.         return $this;
  417.     }
  418.     public function setCommentpl($comment)
  419.     {
  420.         $this->commentpl = $comment;
  421.  
  422.         return $this;
  423.     }
  424.     public function setCommentde($comment)
  425.     {
  426.         $this->commentde = $comment;
  427.  
  428.         return $this;
  429.     }
  430.     public function setCommentes($comment)
  431.     {
  432.         $this->commentes = $comment;
  433.  
  434.         return $this;
  435.     }
  436.     /**
  437.      * Get comment
  438.      *
  439.      * @return string
  440.      */
  441.     public function getComment()
  442.     {
  443.         return $this->comment;
  444.     }
  445.     public function getCommenten()
  446.     {
  447.         return $this->commenten;
  448.     }
  449.     public function getCommentru()
  450.     {
  451.         return $this->commentru;
  452.     }
  453.     public function getCommentpl()
  454.     {
  455.         return $this->commentpl;
  456.     }
  457.     public function getCommentde()
  458.     {
  459.         return $this->commentde;
  460.     }
  461.     public function getCommentes()
  462.     {
  463.         return $this->commentes;
  464.     }
  465.     /**
  466.      * Set type
  467.      *
  468.      * @param string $type
  469.      * @return Starter
  470.      */
  471.     public function setType($type)
  472.     {
  473.         $this->type = $type;
  474.  
  475.         return $this;
  476.     }
  477.  
  478.     /**
  479.      * Get type
  480.      *
  481.      * @return string
  482.      */
  483.     public function getType()
  484.     {
  485.         return $this->type;
  486.     }
  487.  
  488.     /**
  489.      * Set usage
  490.      *
  491.      * @param string $usage
  492.      * @return Starter
  493.      */
  494.     public function setUsage($usage)
  495.     {
  496.         $this->usage = $usage;
  497.  
  498.         return $this;
  499.     }
  500.  
  501.     /**
  502.      * Get usage
  503.      *
  504.      * @return string
  505.      */
  506.     public function getUsage()
  507.     {
  508.         return $this->usage;
  509.     }
  510.  
  511.     /**
  512.      * Get alternative_product_1
  513.      *
  514.      * @return integer
  515.      */
  516.     public function getAlternativeProduct1()
  517.     {
  518.         return $this->alternative_product_1;
  519.     }
  520.  
  521.     /**
  522.      * Set alternative_product_1
  523.      *
  524.      * @param integer $alternative_product_1
  525.      * @return Starter
  526.      */
  527.     public function setAlternativeProduct1($alternative_product_1)
  528.     {
  529.         $this->alternative_product_1 = $alternative_product_1;
  530.  
  531.         return $this;
  532.     }
  533.  
  534.     /**
  535.      * Get alternative_product_2
  536.      *
  537.      * @return integer
  538.      */
  539.     public function getAlternativeProduct2()
  540.     {
  541.         return $this->alternative_product_2;
  542.     }
  543.  
  544.     /**
  545.      * Set alternative_product_2
  546.      *
  547.      * @param integer $alternative_product_2
  548.      * @return Starter
  549.      */
  550.     public function setAlternativeProduct2($alternative_product_2)
  551.     {
  552.         $this->alternative_product_2 = $alternative_product_2;
  553.  
  554.         return $this;
  555.     }
  556.  
  557.     /**
  558.      * Get alternative_product_3
  559.      *
  560.      * @return integer
  561.      */
  562.     public function getAlternativeProduct3()
  563.     {
  564.         return $this->alternative_product_3;
  565.     }
  566.  
  567.     /**
  568.      * Set alternative_product_3
  569.      *
  570.      * @param integer $alternative_product_3
  571.      * @return Starter
  572.      */
  573.     public function setAlternativeProduct3($alternative_product_3)
  574.     {
  575.         $this->alternative_product_3 = $alternative_product_3;
  576.  
  577.         return $this;
  578.     }
  579.  
  580.     /**
  581.      * Get alternative_product_4
  582.      *
  583.      * @return integer
  584.      */
  585.     public function getAlternativeProduct4()
  586.     {
  587.         return $this->alternative_product_4;
  588.     }
  589.  
  590.     /**
  591.      * Set alternative_product_4
  592.      *
  593.      * @param integer $alternative_product_4
  594.      * @return Starter
  595.      */
  596.     public function setAlternativeProduct4($alternative_product_4)
  597.     {
  598.         $this->alternative_product_4 = $alternative_product_4;
  599.  
  600.         return $this;
  601.     }
  602.  
  603.     /**
  604.      * Set active
  605.      *
  606.      * @param boolean $active
  607.      * @return Alternator
  608.      */
  609.     public function setActive($active)
  610.     {
  611.         $this->active = $active;
  612.  
  613.         return $this;
  614.     }
  615.  
  616.     /**
  617.      * Get active
  618.      *
  619.      * @return boolean
  620.      */
  621.     public function getActive()
  622.     {
  623.         return $this->active;
  624.     }
  625.  
  626.     /**
  627.      * Add image
  628.      *
  629.      * @param Image $image
  630.      * @return Starter
  631.      */
  632.     public function addImage(Image $image)
  633.     {
  634.         $this->images[] = $image;
  635.  
  636.         return $this;
  637.     }
  638.  
  639.     /**
  640.      * Remove image
  641.      *
  642.      * @param Image $image
  643.      */
  644.     public function removeImage(Image $image)
  645.     {
  646.         $this->images->removeElement($image);
  647.     }
  648.  
  649.     /**
  650.      * Get images
  651.      *
  652.      * @return \Doctrine\Common\Collections\Collection
  653.      */
  654.     public function getImages()
  655.     {
  656.         return $this->images;
  657.     }
  658.  
  659.     /**
  660.      * Add draft
  661.      *
  662.      * @param Image $draft
  663.      * @return Starter
  664.      */
  665.     public function addDraft(Image $draft)
  666.     {
  667.         $this->drafts[] = $draft;
  668.  
  669.         return $this;
  670.     }
  671.  
  672.     /**
  673.      * Remove draft
  674.      *
  675.      * @param Image $draft
  676.      */
  677.     public function removeDraft(Image $draft)
  678.     {
  679.         $this->drafts->removeElement($draft);
  680.     }
  681.  
  682.     /**
  683.      * Get drafts
  684.      *
  685.      * @return \Doctrine\Common\Collections\Collection
  686.      */
  687.     public function getDrafts()
  688.     {
  689.         return $this->drafts;
  690.     }
  691.  
  692.     /**
  693.      * Add reference
  694.      *
  695.      * @param StarterReference $starterReference
  696.      * @return Starter
  697.      */
  698.     public function addReference(StarterReference $starterReference)
  699.     {
  700.         $this->references[] = $starterReference;
  701.  
  702.         return $this;
  703.     }
  704.  
  705.     /**
  706.      * Remove reference
  707.      *
  708.      * @param StarterReference $starterReference
  709.      */
  710.     public function removeReference(StarterReference $starterReference)
  711.     {
  712.         $this->references->removeElement($starterReference);
  713.     }
  714.  
  715.     /**
  716.      * Get references
  717.      *
  718.      * @return \Doctrine\Common\Collections\Collection
  719.      */
  720.     public function getReferences()
  721.     {
  722.         return $this->references;
  723.     }
  724.  
  725.     /**
  726.      * Add application
  727.      *
  728.      * @param StarterApplication $starterApplication
  729.      * @return Starter
  730.      */
  731.     public function addApplication(StarterApplication $starterApplication)
  732.     {
  733.         $this->applications[] = $starterApplication;
  734.  
  735.         return $this;
  736.     }
  737.  
  738.     /**
  739.      * Remove application
  740.      *
  741.      * @param StarterApplication $starterApplication
  742.      */
  743.     public function removeApplication(StarterApplication $starterApplication)
  744.     {
  745.         $this->applications->removeElement($starterApplication);
  746.     }
  747.  
  748.     /**
  749.      * Get applications
  750.      *
  751.      * @return \Doctrine\Common\Collections\Collection
  752.      */
  753.     public function getApplications()
  754.     {
  755.         return $this->applications;
  756.     }
  757.  
  758.     /**
  759.      * Add tag
  760.      *
  761.      * @param Tag $tag
  762.      * @return Starter
  763.      */
  764.     public function addTag(tag $tag)
  765.     {
  766.         $this->tags[] = $tag;
  767.  
  768.         return $this;
  769.     }
  770.  
  771.     /**
  772.      * Remove tag
  773.      *
  774.      * @param Tag $tag
  775.      */
  776.     public function removeTag(Tag $tag)
  777.     {
  778.         $this->tags->removeElement($tag);
  779.     }
  780.  
  781.     /**
  782.      * Get tags
  783.      *
  784.      * @return \Doctrine\Common\Collections\Collection
  785.      */
  786.     public function getTags()
  787.     {
  788.         return $this->tags;
  789.     }
  790. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement