Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use AppBundle\Entity\Skill;
- use Symfony\Component\Validator\Constraints as Assert;
- use AppBundle\Model\SkillInterface;
- use Doctrine\Common\Collections\ArrayCollection;
- use AppBundle\Model\RecruiterInterface;
- /**
- * Offer
- *
- * @ORM\Table(name="offer")
- * @ORM\Entity(repositoryClass="AppBundle\Repository\OfferRepository")
- */
- class Offer
- {
- /**
- * @var int
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="name", type="string", length=255)
- */
- private $name;
- /**
- * @var string
- *
- * @ORM\Column(name="description", type="text")
- */
- private $description;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="startDate", type="datetime")
- */
- private $startDate;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="endDate", type="datetime")
- */
- private $endDate;
- /**
- * @var string
- *
- * @ORM\Column(name="status", type="string", length=255)
- */
- private $status;
- /**
- * @var \Doctrine\Common\Collections\Collection|Skill[]
- *
- * @ORM\ManyToMany(targetEntity="Skill", inversedBy="offers", cascade={"all"})
- * @ORM\JoinTable(
- * name="offer_has_skills"
- * )
- */
- private $skills;
- /**
- * @var RecruiterInterface
- *
- * @ORM\ManyToOne(targetEntity="Recruiter", inversedBy="offers")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="recruiter_id", referencedColumnName="id")
- * })
- */
- private $recruiter;
- /**
- * Get id
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Offer __construct
- */
- public function __construct(){
- //$this->skills = new ArrayCollection();
- }
- /**
- * Set name
- *
- * @param string $name
- *
- * @return Offer
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Set description
- *
- * @param string $description
- *
- * @return Offer
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * Get description
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Set startDate
- *
- * @param \DateTime $startDate
- *
- * @return Offer
- */
- public function setStartDate($startDate)
- {
- $this->startDate = $startDate;
- return $this;
- }
- /**
- * Get startDate
- *
- * @return \DateTime
- */
- public function getStartDate()
- {
- return $this->startDate;
- }
- /**
- * Set endDate
- *
- * @param \DateTime $endDate
- *
- * @return Offer
- */
- public function setEndDate($endDate)
- {
- $this->endDate = $endDate;
- return $this;
- }
- /**
- * Get endDate
- *
- * @return \DateTime
- */
- public function getEndDate()
- {
- return $this->endDate;
- }
- /**
- * Set status
- *
- * @param string $status
- *
- * @return Offer
- */
- public function setStatus($status)
- {
- $this->status = $status;
- return $this;
- }
- /**
- * Get status
- *
- * @return string
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Add skills.
- *
- * @param Skill $skills
- *
- * @return Company
- */
- public function addSkill(Skill $skills)
- {
- $this->skills[] = $skills;
- return $this;
- }
- /**
- * Remove skills.
- *
- * @param Skill $skills
- */
- public function removeSkill(Skill $skills)
- {
- $this->skills->removeElement($skills);
- }
- /**
- * Get skills.
- *
- * @return Collection
- */
- public function getSkills()
- {
- return $this->skills;
- }
- /**
- * Set recruiter.
- *
- * @param \AppBundle\Entity\Recruiter $recruiter
- *
- * @return Experience
- */
- public function setRecruiter(\AppBundle\Entity\Recruiter $recruiter = null)
- {
- $this->recruiter = $recruiter;
- return $this;
- }
- /**
- * Get recruiter.
- *
- * @return \AppBundle\Entity\Recruiter
- */
- public function getRecruiter()
- {
- return $this->recruiter;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement