mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
PHP8
This commit is contained in:
@@ -6,11 +6,8 @@ use InvalidArgumentException;
|
||||
|
||||
class UserMapper
|
||||
{
|
||||
private StorageAdapter $adapter;
|
||||
|
||||
public function __construct(StorageAdapter $storage)
|
||||
public function __construct(private StorageAdapter $adapter)
|
||||
{
|
||||
$this->adapter = $storage;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user