fork(1) download
  1. <?php
  2.  
  3. namespace Ens\JobeetBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * Job
  9.  */
  10. class Job
  11. {
  12. /**
  13.   * @var integer
  14.   */
  15. private $id;
  16.  
  17. /**
  18.   * @var string
  19.   */
  20. private $type;
  21.  
  22. /**
  23.   * @var string
  24.   */
  25. private $company;
  26.  
  27. /**
  28.   * @var string
  29.   */
  30. private $logo;
  31.  
  32. /**
  33.   * @var string
  34.   */
  35. private $url;
  36.  
  37. /**
  38.   * @var string
  39.   */
  40. private $position;
  41.  
  42. /**
  43.   * @var string
  44.   */
  45. private $location;
  46.  
  47. /**
  48.   * @var string
  49.   */
  50. private $description;
  51.  
  52. /**
  53.   * @var string
  54.   */
  55. private $how_to_apply;
  56.  
  57. /**
  58.   * @var string
  59.   */
  60. private $token;
  61.  
  62. /**
  63.   * @var boolean
  64.   */
  65. private $id_public;
  66.  
  67. /**
  68.   * @var boolean
  69.   */
  70. private $id_activated;
  71.  
  72. /**
  73.   * @var string
  74.   */
  75. private $email;
  76.  
  77. /**
  78.   * @var \DateTime
  79.   */
  80. private $expires_at;
  81.  
  82. /**
  83.   * @var \DateTime
  84.   */
  85. private $created_at;
  86.  
  87. /**
  88.   * @var \DateTime
  89.   */
  90. private $updated_at;
  91.  
  92. /**
  93.   * @var \Ens\JobeetBundle\Entity\Category
  94.   */
  95. private $category;
  96.  
  97.  
  98. /**
  99.   * Get id
  100.   *
  101.   * @return integer
  102.   */
  103. public function getId()
  104. {
  105. return $this->id;
  106. }
  107.  
  108. /**
  109.   * Set type
  110.   *
  111.   * @param string $type
  112.   * @return Job
  113.   */
  114. public function setType($type)
  115. {
  116. $this->type = $type;
  117.  
  118. return $this;
  119. }
  120.  
  121. /**
  122.   * Get type
  123.   *
  124.   * @return string
  125.   */
  126. public function getType()
  127. {
  128. return $this->type;
  129. }
  130.  
  131. /**
  132.   * Set company
  133.   *
  134.   * @param string $company
  135.   * @return Job
  136.   */
  137. public function setCompany($company)
  138. {
  139. $this->company = $company;
  140.  
  141. return $this;
  142. }
  143.  
  144. /**
  145.   * Get company
  146.   *
  147.   * @return string
  148.   */
  149. public function getCompany()
  150. {
  151. return $this->company;
  152. }
  153.  
  154. /**
  155.   * Set logo
  156.   *
  157.   * @param string $logo
  158.   * @return Job
  159.   */
  160. public function setLogo($logo)
  161. {
  162. $this->logo = $logo;
  163.  
  164. return $this;
  165. }
  166.  
  167. /**
  168.   * Get logo
  169.   *
  170.   * @return string
  171.   */
  172. public function getLogo()
  173. {
  174. return $this->logo;
  175. }
  176.  
  177. /**
  178.   * Set url
  179.   *
  180.   * @param string $url
  181.   * @return Job
  182.   */
  183. public function setUrl($url)
  184. {
  185. $this->url = $url;
  186.  
  187. return $this;
  188. }
  189.  
  190. /**
  191.   * Get url
  192.   *
  193.   * @return string
  194.   */
  195. public function getUrl()
  196. {
  197. return $this->url;
  198. }
  199.  
  200. /**
  201.   * Set position
  202.   *
  203.   * @param string $position
  204.   * @return Job
  205.   */
  206. public function setPosition($position)
  207. {
  208. $this->position = $position;
  209.  
  210. return $this;
  211. }
  212.  
  213. /**
  214.   * Get position
  215.   *
  216.   * @return string
  217.   */
  218. public function getPosition()
  219. {
  220. return $this->position;
  221. }
  222.  
  223. /**
  224.   * Set location
  225.   *
  226.   * @param string $location
  227.   * @return Job
  228.   */
  229. public function setLocation($location)
  230. {
  231. $this->location = $location;
  232.  
  233. return $this;
  234. }
  235.  
  236. /**
  237.   * Get location
  238.   *
  239.   * @return string
  240.   */
  241. public function getLocation()
  242. {
  243. return $this->location;
  244. }
  245.  
  246. /**
  247.   * Set description
  248.   *
  249.   * @param string $description
  250.   * @return Job
  251.   */
  252. public function setDescription($description)
  253. {
  254. $this->description = $description;
  255.  
  256. return $this;
  257. }
  258.  
  259. /**
  260.   * Get description
  261.   *
  262.   * @return string
  263.   */
  264. public function getDescription()
  265. {
  266. return $this->description;
  267. }
  268.  
  269. /**
  270.   * Set how_to_apply
  271.   *
  272.   * @param string $howToApply
  273.   * @return Job
  274.   */
  275. public function setHowToApply($howToApply)
  276. {
  277. $this->how_to_apply = $howToApply;
  278.  
  279. return $this;
  280. }
  281.  
  282. /**
  283.   * Get how_to_apply
  284.   *
  285.   * @return string
  286.   */
  287. public function getHowToApply()
  288. {
  289. return $this->how_to_apply;
  290. }
  291.  
  292. /**
  293.   * Set token
  294.   *
  295.   * @param string $token
  296.   * @return Job
  297.   */
  298. public function setToken($token)
  299. {
  300. $this->token = $token;
  301.  
  302. return $this;
  303. }
  304.  
  305. /**
  306.   * Get token
  307.   *
  308.   * @return string
  309.   */
  310. public function getToken()
  311. {
  312. return $this->token;
  313. }
  314.  
  315. /**
  316.   * Set id_public
  317.   *
  318.   * @param boolean $idPublic
  319.   * @return Job
  320.   */
  321. public function setIsPublic($isPublic)
  322. {
  323. $this->is_public = $isPublic;
  324.  
  325. return $this;
  326. }
  327.  
  328. /**
  329.   * Get id_public
  330.   *
  331.   * @return boolean
  332.   */
  333. public function getIsPublic()
  334. {
  335. return $this->id_public;
  336. }
  337.  
  338. /**
  339.   * Set id_activated
  340.   *
  341.   * @param boolean $idActivated
  342.   * @return Job
  343.   */
  344. public function setIsActivated($isActivated)
  345. {
  346. $this->is_activated = $isActivated;
  347.  
  348. return $this;
  349. }
  350.  
  351. /**
  352.   * Get id_activated
  353.   *
  354.   * @return boolean
  355.   */
  356. public function getIsActivated()
  357. {
  358. return $this->is_activated;
  359. }
  360.  
  361. /**
  362.   * Set email
  363.   *
  364.   * @param string $email
  365.   * @return Job
  366.   */
  367. public function setEmail($email)
  368. {
  369. $this->email = $email;
  370.  
  371. return $this;
  372. }
  373.  
  374. /**
  375.   * Get email
  376.   *
  377.   * @return string
  378.   */
  379. public function getEmail()
  380. {
  381. return $this->email;
  382. }
  383.  
  384. /**
  385.   * Set expires_at
  386.   *
  387.   * @param \DateTime $expiresAt
  388.   * @return Job
  389.   */
  390. public function setExpiresAt($expiresAt)
  391. {
  392. $this->expires_at = $expiresAt;
  393.  
  394. return $this;
  395. }
  396.  
  397. /**
  398.   * Get expires_at
  399.   *
  400.   * @return \DateTime
  401.   */
  402. public function getExpiresAt()
  403. {
  404. return $this->expires_at;
  405. }
  406.  
  407. /**
  408.   * Set created_at
  409.   *
  410.   * @param \DateTime $createdAt
  411.   * @return Job
  412.   */
  413. public function setCreatedAt()
  414. {
  415. if(!$this->getCreatedAt())
  416. {
  417. $this->created_at = new \DateTime();
  418. }
  419. }
  420.  
  421. /**
  422.   * Get created_at
  423.   *
  424.   * @return \DateTime
  425.   */
  426. public function getCreatedAt()
  427. {
  428. return $this->created_at;
  429. }
  430.  
  431. /**
  432.   * Set updated_at
  433.   *
  434.   * @param \DateTime $updatedAt
  435.   * @return Job
  436.   */
  437. public function setUpdatedAt()
  438. {
  439. $this->updated_at = new \DateTime();
  440. }
  441.  
  442. /**
  443.   * Get updated_at
  444.   *
  445.   * @return \DateTime
  446.   */
  447. public function getUpdatedAt()
  448. {
  449. return $this->updated_at;
  450. }
  451.  
  452. /**
  453.   * Set category
  454.   *
  455.   * @param \Ens\JobeetBundle\Entity\Category $category
  456.   * @return Job
  457.   */
  458. public function setCategory(\Ens\JobeetBundle\Entity\Category $category = null)
  459. {
  460. $this->category = $category;
  461.  
  462. return $this;
  463. }
  464.  
  465. /**
  466.   * Get category
  467.   *
  468.   * @return \Ens\JobeetBundle\Entity\Category
  469.   */
  470. public function getCategory()
  471. {
  472. return $this->category;
  473. }
  474. }
Success #stdin #stdout 0.01s 24400KB
stdin
Standard input is empty
stdout
Standard output is empty