Advertisement
Guest User

Untitled

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