mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-10 17:04:01 +02:00
update deps & install rector
This commit is contained in:
@@ -4,22 +4,13 @@ namespace DesignPatterns\Structural\Bridge;
|
||||
|
||||
abstract class Service
|
||||
{
|
||||
/**
|
||||
* @var Formatter
|
||||
*/
|
||||
protected $implementation;
|
||||
protected Formatter $implementation;
|
||||
|
||||
/**
|
||||
* @param Formatter $printer
|
||||
*/
|
||||
public function __construct(Formatter $printer)
|
||||
{
|
||||
$this->implementation = $printer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Formatter $printer
|
||||
*/
|
||||
public function setImplementation(Formatter $printer)
|
||||
{
|
||||
$this->implementation = $printer;
|
||||
|
Reference in New Issue
Block a user