mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-12 18:04:04 +02:00
PHP8
This commit is contained in:
@@ -4,11 +4,8 @@ namespace DesignPatterns\Structural\Bridge;
|
||||
|
||||
abstract class Service
|
||||
{
|
||||
protected Formatter $implementation;
|
||||
|
||||
public function __construct(Formatter $printer)
|
||||
public function __construct(protected Formatter $implementation)
|
||||
{
|
||||
$this->implementation = $printer;
|
||||
}
|
||||
|
||||
public function setImplementation(Formatter $printer)
|
||||
|
Reference in New Issue
Block a user