strict callable type
This commit is contained in:
@ -25,13 +25,13 @@ class BillData {
|
||||
/**
|
||||
* Construct new Bill Data Model
|
||||
*
|
||||
* @param mixed $function
|
||||
* @param callable $function
|
||||
* @param Player|string $player
|
||||
* @param int $amount
|
||||
* @param bool $pay
|
||||
* @param string $receiverLogin
|
||||
*/
|
||||
public function __construct($function, $player, $amount, $pay = false, $receiverLogin = null) {
|
||||
public function __construct(callable $function, $player, $amount, $pay = false, $receiverLogin = null) {
|
||||
$this->function = $function;
|
||||
$this->player = $player;
|
||||
$this->amount = $amount;
|
||||
|
Reference in New Issue
Block a user