| Total Complexity | 5 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class AccessUrlRelCourse |
||
| 19 | { |
||
| 20 | use CourseTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @ORM\Column(name="id", type="integer") |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\GeneratedValue() |
||
| 26 | */ |
||
| 27 | protected int $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Course", inversedBy="urls", cascade={"persist"}) |
||
| 31 | * @ORM\JoinColumn(name="c_id", referencedColumnName="id") |
||
| 32 | */ |
||
| 33 | protected Course $course; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @ORM\ManyToOne(targetEntity="AccessUrl", inversedBy="courses", cascade={"persist"}) |
||
| 37 | * @ORM\JoinColumn(name="access_url_id", referencedColumnName="id") |
||
| 38 | */ |
||
| 39 | protected AccessUrl $url; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function __toString() |
||
| 45 | { |
||
| 46 | return '-'; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get id. |
||
| 51 | * |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | public function getId() |
||
| 57 | } |
||
| 58 | |||
| 59 | public function setUrl(AccessUrl $url): self |
||
| 64 | } |
||
| 65 | |||
| 66 | public function getUrl(): AccessUrl |
||
| 69 | } |
||
| 70 | |||
| 71 | public function getCourse(): Course |
||
| 76 |