ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
NullAction.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Data\URI;
24 
28 class NullAction extends Action
29 {
31  public function __construct()
32  {
33  }
34 
35  public function withId(int $id): self
36  {
37  return $this;
38  }
39 
40  public function getId(): int
41  {
42  return 0;
43  }
44 
45  public function getName(): string
46  {
47  return 'Null';
48  }
49 
50  public function getExtension(): string
51  {
52  return '';
53  }
54 
55  public function getLauncherUrl(): URI
56  {
57  return new URI(''); // this will fail, but a NullAction can't be used anyway
58  }
59 
60  public function getUrlAppendix(): ?string
61  {
62  return null;
63  }
64 
65  public function getTargetExtension(): ?string
66  {
67  return null;
68  }
69 
70 }
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:18
__construct()
MagicMethodsValidityInspection
Definition: NullAction.php:31
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23