| 1 | <?php  | 
            ||
| 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  | 
            ||
| 23 | const LAST_HANDLER = 0x20;  | 
            ||
| 24 | const QUIT = 0x30;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @var Run  | 
            ||
| 28 | */  | 
            ||
| 29 | private $run;  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @var Inspector $inspector  | 
            ||
| 33 | */  | 
            ||
| 34 | private $inspector;  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * @var \Exception | \Throwable $exception  | 
            ||
| 38 | */  | 
            ||
| 39 | private $exception;  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * @param Run $run  | 
            ||
| 43 | */  | 
            ||
| 44 | 2 | public function setRun(Run $run)  | 
            |
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * @return Run  | 
            ||
| 51 | */  | 
            ||
| 52 | 1 | protected function getRun()  | 
            |
| 56 | |||
| 57 | /**  | 
            ||
| 58 | * @param Inspector $inspector  | 
            ||
| 59 | */  | 
            ||
| 60 | 2 | public function setInspector(Inspector $inspector)  | 
            |
| 64 | |||
| 65 | /**  | 
            ||
| 66 | * @return Inspector  | 
            ||
| 67 | */  | 
            ||
| 68 | 2 | protected function getInspector()  | 
            |
| 72 | |||
| 73 | /**  | 
            ||
| 74 | * @param \Exception | \Throwable $exception  | 
            ||
| 75 | */  | 
            ||
| 76 | 2 | public function setException($exception)  | 
            |
| 80 | |||
| 81 | /**  | 
            ||
| 82 | * @return \Exception | \Throwable  | 
            ||
| 83 | */  | 
            ||
| 84 | 2 | protected function getException()  | 
            |
| 88 | }  | 
            ||
| 89 |