ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Handler.php
Go to the documentation of this file.
1 <?php
7 namespace Whoops\Handler;
8 
9 use Exception;
11 use Whoops\Run;
12 
16 abstract class Handler implements HandlerInterface
17 {
22  const DONE = 0x10; // returning this is optional, only exists for
23  // semantic purposes
24  const LAST_HANDLER = 0x20;
25  const QUIT = 0x30;
26 
30  private $run;
31 
35  private $inspector;
36 
40  private $exception;
41 
45  public function setRun(Run $run)
46  {
47  $this->run = $run;
48  }
49 
53  protected function getRun()
54  {
55  return $this->run;
56  }
57 
62  {
63  $this->inspector = $inspector;
64  }
65 
69  protected function getInspector()
70  {
71  return $this->inspector;
72  }
73 
78  {
79  $this->exception = $exception;
80  }
81 
85  protected function getException()
86  {
87  return $this->exception;
88  }
89 }
setException(Exception $exception)
Definition: Handler.php:77
Whoops - php errors for cool kids.
const DONE
Return constants that can be returned from Handler::handle to message the handler walker...
Definition: Handler.php:22
Abstract implementation of a Handler.
Definition: Handler.php:16
setInspector(Inspector $inspector)
Definition: Handler.php:61