2013-02-14 02:42:13 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Mocks;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Cache\CacheKey;
|
|
|
|
|
2013-10-23 23:46:45 +04:00
|
|
|
/**
|
|
|
|
* Cache key mock
|
|
|
|
*
|
|
|
|
* Used to store/retrieve entries from a cache region
|
|
|
|
*/
|
2013-02-14 02:42:13 +04:00
|
|
|
class CacheKeyMock extends CacheKey
|
|
|
|
{
|
2013-10-23 23:46:45 +04:00
|
|
|
/**
|
|
|
|
* @param string $hash The string hash that represend this cache key
|
|
|
|
*/
|
2013-02-14 02:42:13 +04:00
|
|
|
function __construct($hash)
|
|
|
|
{
|
|
|
|
$this->hash = $hash;
|
|
|
|
}
|
2013-10-17 20:11:56 +04:00
|
|
|
}
|