Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Starter
- *
- * @ORM\Table("starters")
- * @ORM\Entity(repositoryClass="Jubana\CatalogBundle\Repository\StarterRepository")
- */
- class Starter
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var integer
- *
- * @ORM\Column(name="serial", type="integer", unique=true)
- */
- private $serial;
- /**
- * @var integer
- *
- * @ORM\Column(name="voltage", type="smallint")
- */
- private $voltage;
- /**
- * @var string
- *
- * @ORM\Column(name="power", type="string")
- */
- private $power;
- /**
- * @var string
- *
- * @ORM\Column(name="rotation", type="string")
- */
- private $rotation;
- /**
- * @var integer;
- *
- * @ORM\Column(name="teeth", type="smallint")
- */
- private $teeth;
- /**
- * @var string
- *
- * @ORM\Column(name="module", type="string")
- */
- private $module;
- /**
- * @var string
- *
- * @ORM\Column(name="b_terminal", type="string")
- */
- private $b_terminal;
- /**
- * @var string
- *
- * @ORM\Column(name="comment", type="text")
- */
- private $comment;
- /**
- * @var string
- *
- * @ORM\Column(name="commenten", type="text")
- */
- private $commenten;
- /**
- * @var string
- *
- * @ORM\Column(name="commentru", type="text")
- */
- private $commentru;
- /**
- * @var string
- *
- * @ORM\Column(name="commentpl", type="text")
- */
- private $commentpl;
- /**
- * @var string
- *
- * @ORM\Column(name="commentde", type="text")
- */
- private $commentde;
- /**
- * @var string
- *
- * @ORM\Column(name="commentes", type="text")
- */
- private $commentes;
- /**
- * @var string
- *
- * @ORM\Column(name="type", type="text")
- */
- protected $type;
- /**
- * @var string
- *
- * @ORM\Column(name="adaptation", type="text")
- */
- protected $usage;
- /**
- * @var integer
- *
- * @ORM\Column(name="alternative_product_1", type="integer")
- */
- private $alternative_product_1;
- /**
- * @var integer
- *
- * @ORM\Column(name="alternative_product_2", type="integer")
- */
- private $alternative_product_2;
- /**
- * @var integer
- *
- * @ORM\Column(name="alternative_product_3", type="integer")
- */
- private $alternative_product_3;
- /**
- * @var integer
- *
- * @ORM\Column(name="alternative_product_4", type="integer")
- */
- private $alternative_product_4;
- /**
- * @var boolean
- *
- * @ORM\Column(name="active", type="boolean")
- */
- protected $active;
- /**
- * @var ArrayCollection
- *
- * @ORM\ManyToMany(targetEntity="Nnteam\ImageBundle\Entity\Image")
- * @ORM\JoinTable(name="starters_images")
- */
- protected $images;
- /**
- * @var ArrayCollection
- *
- * @ORM\ManyToMany(targetEntity="Nnteam\ImageBundle\Entity\Image")
- * @ORM\JoinTable(name="starters_drafts")
- */
- protected $drafts;
- /**
- * @var ArrayCollection
- *
- * @ORM\ManyToMany(targetEntity="StarterReference", inversedBy="starters")
- * @ORM\JoinTable(name="starters_references")
- */
- protected $references;
- /**
- * @var ArrayCollection
- *
- * @ORM\ManyToMany(targetEntity="StarterApplication", inversedBy="starters")
- * @ORM\JoinTable(name="starters_applications")
- */
- protected $applications;
- /**
- * @var ArrayCollection
- *
- * @ORM\ManyToMany(targetEntity="StarterApplication", inversedBy="starters")
- * @ORM\JoinTable(name="manufacturer")
- */
- protected $manufacturer;
- /**
- * @var ArrayCollection
- *
- * @ORM\ManyToMany(targetEntity="Nnteam\TagBundle\Entity\Tag")
- * @ORM\JoinTable(name="starters_tags")
- */
- protected $tags;
- /**
- * Constructor
- */
- public function __construct()
- {
- $this->types = new ArrayCollection();
- $this->images = new ArrayCollection();
- $this->drafts = new ArrayCollection();
- $this->references = new ArrayCollection();
- $this->applications = new ArrayCollection();
- $this->tags = new ArrayCollection();
- }
- /**
- * To string magic method
- *
- * @return string
- */
- public function __toString()
- {
- return (string)$this->getSerial();
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set serial
- *
- * @param integer $serial
- * @return Starter
- */
- public function setSerial($serial)
- {
- $this->serial = $serial;
- return $this;
- }
- /**
- * Get serial
- *
- * @return integer
- */
- public function getSerial()
- {
- return $this->serial;
- }
- /**
- * Set voltage
- *
- * @param integer $voltage
- * @return Starter
- */
- public function setVoltage($voltage)
- {
- $this->voltage = $voltage;
- return $this;
- }
- /**
- * Get voltage
- *
- * @return integer
- */
- public function getVoltage()
- {
- return $this->voltage;
- }
- /**
- * Set power
- *
- * @param string $power
- * @return Starter
- */
- public function setPower($power)
- {
- $this->power = $power;
- return $this;
- }
- /**
- * Get power
- *
- * @return string
- */
- public function getPower()
- {
- return $this->power;
- }
- /**
- * Set rotation
- *
- * @param string $rotation
- * @return Starter
- */
- public function setRotation($rotation)
- {
- $this->rotation = $rotation;
- return $this;
- }
- /**
- * Get rotation
- *
- * @return string
- */
- public function getRotation()
- {
- return $this->rotation;
- }
- /**
- * Set teeth
- *
- * @param int $teeth
- * @return Starter
- */
- public function setTeeth($teeth)
- {
- $this->teeth = $teeth;
- return $this;
- }
- /**
- * Get teeth
- *
- * @return int
- */
- public function getTeeth()
- {
- return $this->teeth;
- }
- /**
- * Set module
- *
- * @param string $module
- * @return Starter
- */
- public function setModule($module)
- {
- $this->module = $module;
- return $this;
- }
- /**
- * Get module
- *
- * @return string
- */
- public function getModule()
- {
- return $this->module;
- }
- /**
- * Set b_terminal
- *
- * @param string $b_terminal
- * @return Starter
- */
- public function setBTerminal($b_terminal)
- {
- $this->b_terminal = $b_terminal;
- return $this;
- }
- /**
- * Get b_terminal
- *
- * @return string
- */
- public function getBTerminal()
- {
- return $this->b_terminal;
- }
- /**
- * Set comment
- *
- * @param string $comment
- * @return Starter
- */
- public function setComment($comment)
- {
- $this->comment = $comment;
- return $this;
- }
- public function setCommenten($comment)
- {
- $this->commenten = $comment;
- return $this;
- }
- public function setCommentru($comment)
- {
- $this->commentru = $comment;
- return $this;
- }
- public function setCommentpl($comment)
- {
- $this->commentpl = $comment;
- return $this;
- }
- public function setCommentde($comment)
- {
- $this->commentde = $comment;
- return $this;
- }
- public function setCommentes($comment)
- {
- $this->commentes = $comment;
- return $this;
- }
- /**
- * Get comment
- *
- * @return string
- */
- public function getComment()
- {
- return $this->comment;
- }
- public function getCommenten()
- {
- return $this->commenten;
- }
- public function getCommentru()
- {
- return $this->commentru;
- }
- public function getCommentpl()
- {
- return $this->commentpl;
- }
- public function getCommentde()
- {
- return $this->commentde;
- }
- public function getCommentes()
- {
- return $this->commentes;
- }
- /**
- * Set type
- *
- * @param string $type
- * @return Starter
- */
- public function setType($type)
- {
- $this->type = $type;
- return $this;
- }
- /**
- * Get type
- *
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Set usage
- *
- * @param string $usage
- * @return Starter
- */
- public function setUsage($usage)
- {
- $this->usage = $usage;
- return $this;
- }
- /**
- * Get usage
- *
- * @return string
- */
- public function getUsage()
- {
- return $this->usage;
- }
- /**
- * Get alternative_product_1
- *
- * @return integer
- */
- public function getAlternativeProduct1()
- {
- return $this->alternative_product_1;
- }
- /**
- * Set alternative_product_1
- *
- * @param integer $alternative_product_1
- * @return Starter
- */
- public function setAlternativeProduct1($alternative_product_1)
- {
- $this->alternative_product_1 = $alternative_product_1;
- return $this;
- }
- /**
- * Get alternative_product_2
- *
- * @return integer
- */
- public function getAlternativeProduct2()
- {
- return $this->alternative_product_2;
- }
- /**
- * Set alternative_product_2
- *
- * @param integer $alternative_product_2
- * @return Starter
- */
- public function setAlternativeProduct2($alternative_product_2)
- {
- $this->alternative_product_2 = $alternative_product_2;
- return $this;
- }
- /**
- * Get alternative_product_3
- *
- * @return integer
- */
- public function getAlternativeProduct3()
- {
- return $this->alternative_product_3;
- }
- /**
- * Set alternative_product_3
- *
- * @param integer $alternative_product_3
- * @return Starter
- */
- public function setAlternativeProduct3($alternative_product_3)
- {
- $this->alternative_product_3 = $alternative_product_3;
- return $this;
- }
- /**
- * Get alternative_product_4
- *
- * @return integer
- */
- public function getAlternativeProduct4()
- {
- return $this->alternative_product_4;
- }
- /**
- * Set alternative_product_4
- *
- * @param integer $alternative_product_4
- * @return Starter
- */
- public function setAlternativeProduct4($alternative_product_4)
- {
- $this->alternative_product_4 = $alternative_product_4;
- return $this;
- }
- /**
- * Set active
- *
- * @param boolean $active
- * @return Alternator
- */
- public function setActive($active)
- {
- $this->active = $active;
- return $this;
- }
- /**
- * Get active
- *
- * @return boolean
- */
- public function getActive()
- {
- return $this->active;
- }
- /**
- * Add image
- *
- * @param Image $image
- * @return Starter
- */
- public function addImage(Image $image)
- {
- $this->images[] = $image;
- return $this;
- }
- /**
- * Remove image
- *
- * @param Image $image
- */
- public function removeImage(Image $image)
- {
- $this->images->removeElement($image);
- }
- /**
- * Get images
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getImages()
- {
- return $this->images;
- }
- /**
- * Add draft
- *
- * @param Image $draft
- * @return Starter
- */
- public function addDraft(Image $draft)
- {
- $this->drafts[] = $draft;
- return $this;
- }
- /**
- * Remove draft
- *
- * @param Image $draft
- */
- public function removeDraft(Image $draft)
- {
- $this->drafts->removeElement($draft);
- }
- /**
- * Get drafts
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getDrafts()
- {
- return $this->drafts;
- }
- /**
- * Add reference
- *
- * @param StarterReference $starterReference
- * @return Starter
- */
- public function addReference(StarterReference $starterReference)
- {
- $this->references[] = $starterReference;
- return $this;
- }
- /**
- * Remove reference
- *
- * @param StarterReference $starterReference
- */
- public function removeReference(StarterReference $starterReference)
- {
- $this->references->removeElement($starterReference);
- }
- /**
- * Get references
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getReferences()
- {
- return $this->references;
- }
- /**
- * Add application
- *
- * @param StarterApplication $starterApplication
- * @return Starter
- */
- public function addApplication(StarterApplication $starterApplication)
- {
- $this->applications[] = $starterApplication;
- return $this;
- }
- /**
- * Remove application
- *
- * @param StarterApplication $starterApplication
- */
- public function removeApplication(StarterApplication $starterApplication)
- {
- $this->applications->removeElement($starterApplication);
- }
- /**
- * Get applications
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getApplications()
- {
- return $this->applications;
- }
- /**
- * Add tag
- *
- * @param Tag $tag
- * @return Starter
- */
- public function addTag(tag $tag)
- {
- $this->tags[] = $tag;
- return $this;
- }
- /**
- * Remove tag
- *
- * @param Tag $tag
- */
- public function removeTag(Tag $tag)
- {
- $this->tags->removeElement($tag);
- }
- /**
- * Get tags
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getTags()
- {
- return $this->tags;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement