ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Action.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
28class Action
29{
30 public function __construct(
31 private int $id,
32 private string $name,
33 private string $extension,
34 private URI $launcher_url,
35 private ?string $url_appendix = null,
36 private ?string $target_ext = null
37 ) {
38 }
39
40 public function withId(int $id): self
41 {
42 $this->id = $id;
43 return $this;
44 }
45
46 public function getId(): int
47 {
48 return $this->id;
49 }
50
51 public function getName(): string
52 {
53 return $this->name;
54 }
55
56 public function getExtension(): string
57 {
58 return $this->extension;
59 }
60
61 public function getLauncherUrl(): URI
62 {
63 return $this->launcher_url;
64 }
65
66 public function getUrlAppendix(): ?string
67 {
68 return $this->url_appendix;
69 }
70
71 public function getTargetExtension(): ?string
72 {
73 return $this->target_ext;
74 }
75
76}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
__construct(private int $id, private string $name, private string $extension, private URI $launcher_url, private ?string $url_appendix=null, private ?string $target_ext=null)
Definition: Action.php:30