ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullIntercept.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 use Exception;
26 
27 final class NullIntercept implements Intercept
28 {
29  public function intercept(): bool
30  {
31  return false;
32  }
33 
34  public function id(): string
35  {
36  throw new Exception('Don\'t call me!');
37  }
38 
39  public function target(): Target
40  {
41  $this->id();
42  }
43 }