mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-05 06:27:25 +02:00
introduced Storage interface
This commit is contained in:
@@ -14,11 +14,11 @@ namespace DesignPatterns\More\Repository;
|
||||
class PostRepository
|
||||
{
|
||||
/**
|
||||
* @var MemoryStorage
|
||||
* @var Storage
|
||||
*/
|
||||
private $persistence;
|
||||
|
||||
public function __construct(MemoryStorage $persistence)
|
||||
public function __construct(Storage $persistence)
|
||||
{
|
||||
$this->persistence = $persistence;
|
||||
}
|
||||
|
Reference in New Issue
Block a user