point to interface instead of implementation

This commit is contained in:
inssein
2016-07-29 08:49:17 -07:00
parent fcfe85f2f5
commit 4e7ffd30a7
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -7,7 +7,7 @@
namespace Whoops\Handler;
use Whoops\Exception\Inspector;
use Whoops\Run;
use Whoops\RunInterface;
/**
* Abstract implementation of a Handler.
@@ -24,7 +24,7 @@ abstract class Handler implements HandlerInterface
const QUIT = 0x30;
/**
* @var Run
* @var RunInterface
*/
private $run;
@@ -39,15 +39,15 @@ abstract class Handler implements HandlerInterface
private $exception;
/**
* @param Run $run
* @param RunInterface $run
*/
public function setRun(Run $run)
public function setRun(RunInterface $run)
{
$this->run = $run;
}
/**
* @return Run
* @return RunInterface
*/
protected function getRun()
{
+3 -3
View File
@@ -7,7 +7,7 @@
namespace Whoops\Handler;
use Whoops\Exception\Inspector;
use Whoops\Run;
use Whoops\RunInterface;
interface HandlerInterface
{
@@ -17,10 +17,10 @@ interface HandlerInterface
public function handle();
/**
* @param Run $run
* @param RunInterface $run
* @return void
*/
public function setRun(Run $run);
public function setRun(RunInterface $run);
/**
* @param \Throwable $exception