ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullRequest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 use ILIAS\Data\URI;
26 
27 class NullRequest implements RequestInterface
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 }
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