ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Handler.php
Go to the documentation of this file.
1 <?php
7 namespace Whoops\Handler;
8 
11 
15 abstract class Handler implements HandlerInterface
16 {
17  /*
18  Return constants that can be returned from Handler::handle
19  to message the handler walker.
20  */
21  const DONE = 0x10; // returning this is optional, only exists for
22  // semantic purposes
27  const LAST_HANDLER = 0x20;
31  const QUIT = 0x30;
32 
36  private $run;
37 
41  private $inspector;
42 
46  private $exception;
47 
51  public function setRun(RunInterface $run)
52  {
53  $this->run = $run;
54  }
55 
59  protected function getRun()
60  {
61  return $this->run;
62  }
63 
68  {
69  $this->inspector = $inspector;
70  }
71 
75  protected function getInspector()
76  {
77  return $this->inspector;
78  }
79 
83  public function setException($exception)
84  {
85  $this->exception = $exception;
86  }
87 
91  protected function getException()
92  {
93  return $this->exception;
94  }
95 }
Whoops - php errors for cool kids.
setRun(RunInterface $run)
Definition: Handler.php:51
run()
Runs the loop.
Definition: functions.php:130
const QUIT
The Handler has handled the Throwable in some way, and wishes to quit/stop execution.
Definition: Handler.php:31
const LAST_HANDLER
The Handler has handled the Throwable in some way, and wishes to skip any other Handler.
Definition: Handler.php:27
Abstract implementation of a Handler.
Definition: Handler.php:15
setException($exception)
Definition: Handler.php:83
setInspector(Inspector $inspector)
Definition: Handler.php:67