@@ 13-40 (lines=28) @@ | ||
10 | * |
|
11 | * @property-read int $timeEntryId |
|
12 | */ |
|
13 | class StopTimeEntry extends Request |
|
14 | { |
|
15 | /** |
|
16 | * @var string |
|
17 | */ |
|
18 | protected $uri = 'time_entries/{time_entry_id}/stop'; |
|
19 | ||
20 | /** |
|
21 | * @var string |
|
22 | */ |
|
23 | protected $method = Request::PUT; |
|
24 | ||
25 | /** |
|
26 | * @var int |
|
27 | */ |
|
28 | protected $timeEntryId; |
|
29 | ||
30 | /** |
|
31 | * StopTimeEntry constructor. |
|
32 | * |
|
33 | * @param array $properties |
|
34 | */ |
|
35 | public function __construct(array $properties) |
|
36 | { |
|
37 | parent::__construct($properties); |
|
38 | $this->uri = str_replace('{time_entry_id}', $this->timeEntryId, $this->uri); |
|
39 | } |
|
40 | } |
|
41 |
@@ 13-41 (lines=29) @@ | ||
10 | * |
|
11 | * @property-read int $workspaceUserId |
|
12 | */ |
|
13 | class DeleteWorkspaceUser extends Request |
|
14 | { |
|
15 | /** |
|
16 | * @var string |
|
17 | */ |
|
18 | protected $uri = 'workspace_users/{workspace_user_id}'; |
|
19 | ||
20 | /** |
|
21 | * @var string |
|
22 | */ |
|
23 | protected $method = Request::DELETE; |
|
24 | ||
25 | /** |
|
26 | * @var int |
|
27 | */ |
|
28 | protected $workspaceUserId; |
|
29 | ||
30 | /** |
|
31 | * DeleteWorkspaceUser constructor. |
|
32 | * |
|
33 | * @param array $properties |
|
34 | */ |
|
35 | public function __construct(array $properties) |
|
36 | { |
|
37 | parent::__construct($properties); |
|
38 | ||
39 | $this->uri = str_replace('{workspace_user_id}', $this->workspaceUserId, $this->uri); |
|
40 | } |
|
41 | } |
|
42 |
@@ 13-40 (lines=28) @@ | ||
10 | * |
|
11 | * @property-read int $projectUserId |
|
12 | */ |
|
13 | class DeleteProjectUser extends Request |
|
14 | { |
|
15 | /** |
|
16 | * @var string |
|
17 | */ |
|
18 | protected $uri = 'project_users/{project_user_id}'; |
|
19 | ||
20 | /** |
|
21 | * @var int |
|
22 | */ |
|
23 | protected $projectUserId; |
|
24 | ||
25 | /** |
|
26 | * @var string |
|
27 | */ |
|
28 | protected $method = Request::DELETE; |
|
29 | ||
30 | /** |
|
31 | * DeleteProjectUser constructor. |
|
32 | * |
|
33 | * @param array $parameters |
|
34 | */ |
|
35 | public function __construct(array $parameters) |
|
36 | { |
|
37 | parent::__construct($parameters); |
|
38 | $this->uri = str_replace('{project_user_id}', $this->projectUserId, $this->uri); |
|
39 | } |
|
40 | } |
|
41 |
@@ 13-41 (lines=29) @@ | ||
10 | * |
|
11 | * @property-read int $tagId |
|
12 | */ |
|
13 | class DeleteTag extends Request |
|
14 | { |
|
15 | /** |
|
16 | * @var string |
|
17 | */ |
|
18 | protected $method = Request::DELETE; |
|
19 | ||
20 | /** |
|
21 | * @var string |
|
22 | */ |
|
23 | protected $uri = 'tags/{tag_id}'; |
|
24 | ||
25 | /** |
|
26 | * @var int |
|
27 | */ |
|
28 | protected $tagId; |
|
29 | ||
30 | /** |
|
31 | * UpdateTag constructor. |
|
32 | * |
|
33 | * @param array $properties |
|
34 | */ |
|
35 | public function __construct(array $properties) |
|
36 | { |
|
37 | parent::__construct($properties); |
|
38 | ||
39 | $this->uri = str_replace('{tag_id}', $this->tagId, $this->uri); |
|
40 | } |
|
41 | } |
|
42 |