mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 15:06:31 +02:00
PHP8
This commit is contained in:
@@ -8,15 +8,12 @@ namespace DesignPatterns\Behavioral\Command;
|
||||
*/
|
||||
class AddMessageDateCommand implements UndoableCommand
|
||||
{
|
||||
private Receiver $output;
|
||||
|
||||
/**
|
||||
* Each concrete command is built with different receivers.
|
||||
* There can be one, many or completely no receivers, but there can be other commands in the parameters.
|
||||
*/
|
||||
public function __construct(Receiver $console)
|
||||
public function __construct(private Receiver $output)
|
||||
{
|
||||
$this->output = $console;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user