mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
add psalm and travis check
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
|
||||
namespace DesignPatterns\More\EAV;
|
||||
|
||||
use SplObjectStorage;
|
||||
|
||||
class Entity
|
||||
{
|
||||
/**
|
||||
* @var \SplObjectStorage
|
||||
* @var SplObjectStorage<Value,Value>
|
||||
*/
|
||||
private $values;
|
||||
|
||||
@@ -20,7 +22,7 @@ class Entity
|
||||
*/
|
||||
public function __construct(string $name, $values)
|
||||
{
|
||||
$this->values = new \SplObjectStorage();
|
||||
$this->values = new SplObjectStorage();
|
||||
$this->name = $name;
|
||||
|
||||
foreach ($values as $value) {
|
||||
|
Reference in New Issue
Block a user