Moar typehints

This commit is contained in:
Dylan K. Taylor
2017-07-05 18:21:04 +01:00
parent 08b8debd78
commit 8fc1501e89
14 changed files with 111 additions and 88 deletions

View File

@ -31,7 +31,7 @@ class AsyncWorker extends Worker{
private $logger;
private $id;
public function __construct(MainLogger $logger, $id){
public function __construct(MainLogger $logger, int $id){
$this->logger = $logger;
$this->id = $id;
}
@ -53,7 +53,7 @@ class AsyncWorker extends Worker{
$this->logger->logException($e);
}
public function getThreadName(){
public function getThreadName() : string{
return "Asynchronous Worker #" . $this->id;
}
}