Add Entity-Attribute-Value (EAV) pattern

This commit is contained in:
victor
2015-07-20 18:32:30 +03:00
parent dab22757a7
commit 1b068456c1
5 changed files with 286 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace DesignPatterns\More\EAV;
/**
* Interface ValueInterface
*/
interface ValueInterface
{
/**
* @return Value[]|ValueInterface[]|array
*/
public function getValues();
/**
* @param Value|ValueInterface $value
*/
public function addValue(ValueInterface $value);
/**
* @param Value|ValueInterface $value
*/
public function removeValue(ValueInterface $value);
}