mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-27 00:16:31 +02:00
PHP8
This commit is contained in:
@@ -4,15 +4,13 @@ namespace DesignPatterns\More\EAV;
|
||||
|
||||
use SplObjectStorage;
|
||||
|
||||
class Attribute
|
||||
class Attribute implements \Stringable
|
||||
{
|
||||
private SplObjectStorage $values;
|
||||
private string $name;
|
||||
|
||||
public function __construct(string $name)
|
||||
public function __construct(private string $name)
|
||||
{
|
||||
$this->values = new SplObjectStorage();
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function addValue(Value $value)
|
||||
|
Reference in New Issue
Block a user