ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullIntercept.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use Exception;
26
27final 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}