|
|
|
@ -247,6 +247,13 @@ class Course extends AbstractResource implements ResourceInterface, ResourceWith |
|
|
|
|
*/ |
|
|
|
|
protected ?string $description; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @Groups({"course:read", "course_rel_user:read"}) |
|
|
|
|
* |
|
|
|
|
* @ORM\Column(name="introduction", type="text", nullable=true) |
|
|
|
|
*/ |
|
|
|
|
protected ?string $introduction; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @ApiSubresource() |
|
|
|
|
* @Groups({"course:read", "course:write", "course_rel_user:read"}) |
|
|
|
@ -1269,6 +1276,18 @@ class Course extends AbstractResource implements ResourceInterface, ResourceWith |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getIntroduction(): ?string |
|
|
|
|
{ |
|
|
|
|
return $this->introduction; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function setIntroduction(?string $introduction): self |
|
|
|
|
{ |
|
|
|
|
$this->introduction = $introduction; |
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return Templates[]|Collection |
|
|
|
|
*/ |
|
|
|
|