ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilDerivedTask.php
Go to the documentation of this file.
1<?php
2
25{
26 protected string $title;
27
28 protected int $ref_id;
29
30 protected int $deadline;
31
32 protected int $starting_time;
33
34 protected int $wsp_id;
35
36 protected string $url = '';
37
41 public function __construct(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id)
42 {
43 $this->title = $title;
44 $this->ref_id = $ref_id;
45 $this->deadline = $deadline;
46 $this->starting_time = $starting_time;
47 $this->wsp_id = $wsp_id;
48 }
49
55 public function getRefId(): int
56 {
57 return $this->ref_id;
58 }
59
65 public function getWspId(): int
66 {
67 return $this->wsp_id;
68 }
69
73 public function getDeadline(): int
74 {
75 return $this->deadline;
76 }
77
81 public function getStartingTime(): int
82 {
84 }
85
89 public function getTitle(): string
90 {
91 return $this->title;
92 }
93
94 public function withUrl(string $url): self
95 {
96 $clone = clone $this;
97 $clone->url = $url;
98
99 return $clone;
100 }
101
102 public function getUrl(): string
103 {
104 return $this->url;
105 }
106}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getWspId()
Get wsp id.
withUrl(string $url)
getRefId()
Get ref id.
__construct(string $title, int $ref_id, int $deadline, int $starting_time, int $wsp_id)
Constructor.