mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 05:51:46 +02:00
Add Entity-Attribute-Value (EAV) pattern
This commit is contained in:
24
More/EAV/ValueInterface.php
Normal file
24
More/EAV/ValueInterface.php
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user