LogEventLp.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Chamilo\PluginBundle\Entity\WhispeakAuth;
  4. use Chamilo\CourseBundle\Entity\CLp;
  5. use Chamilo\CourseBundle\Entity\CLpItem;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * Class LogEventLp.
  9. *
  10. * @package Chamilo\PluginBundle\Entity\WhispeakAuth
  11. *
  12. * @ORM\Entity()
  13. */
  14. class LogEventLp extends LogEvent
  15. {
  16. /**
  17. * @var CLpItem
  18. *
  19. * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CLpItem")
  20. * @ORM\JoinColumn(name="lp_item_id", referencedColumnName="iid")
  21. */
  22. private $lpItem;
  23. /**
  24. * @var CLp
  25. *
  26. * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CLp")
  27. * @ORM\JoinColumn(name="lp_id", referencedColumnName="iid")
  28. */
  29. private $lp;
  30. /**
  31. * @return CLpItem
  32. */
  33. public function getLpItem()
  34. {
  35. return $this->lpItem;
  36. }
  37. /**
  38. * @param CLpItem $lpItem
  39. *
  40. * @return LogEventLp
  41. */
  42. public function setLpItem($lpItem)
  43. {
  44. $this->lpItem = $lpItem;
  45. return $this;
  46. }
  47. /**
  48. * @return CLp
  49. */
  50. public function getLp()
  51. {
  52. return $this->lp;
  53. }
  54. /**
  55. * @param CLp $lp
  56. *
  57. * @return LogEventLp
  58. */
  59. public function setLp($lp)
  60. {
  61. $this->lp = $lp;
  62. return $this;
  63. }
  64. }