ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullRequest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
28{
29 public function baseURL(): URI
30 {
31 return new URI('http://0');
32 }
33
34 public function verb(): Verb
35 {
36 return Verb::NULL;
37 }
38
39 public function withArgument(Argument $key, string $value): RequestInterface
40 {
41 return $this;
42 }
43
44 public function argumentValue(Argument $argument): string
45 {
46 return '';
47 }
48
49 public function hasArgument(Argument $argument): bool
50 {
51 return false;
52 }
53
54 public function hasCorrectArguments(array $required, array $optional, array $exclusive): bool
55 {
56 return false;
57 }
58
62 public function argumentKeys(): \Generator
63 {
64 yield from [];
65 }
66}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
hasCorrectArguments(array $required, array $optional, array $exclusive)
Returns true if this either has all required arguments, any subset of the optional arguments,...
Definition: NullRequest.php:54