for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnimeDb package.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2014, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace AnimeDb\Bundle\CacheTimeKeeperBundle\Service\Driver;
class Dummy extends BaseDriver
{
* @var array
protected $times = [];
* @param string $key
* @return \DateTime|null
public function get($key)
if (isset($this->times[$key])) {
return clone $this->times[$key];
}
return;
* @param \DateTime $time
* @return bool
public function set($key, \DateTime $time)
$this->times[$key] = clone $time;
return true;
public function remove($key)
unset($this->times[$key]);
return false;