src/Service/Driver/Shmop.php
public function get($key)
    {
        $sh = new BlockShmop($this->getIdByKey($key), 10);
        if ($time = $sh->read()) {
            return (new \DateTime())->setTimestamp($time);
        }

        return;
    }
public function get($key)
    {
        $sh = new BlockShmop($this->getIdByKey($key), 10);
        if ($time = $sh->read()) {
            return (new \DateTime())->setTimestamp($time);
        }

        return;
    }
public function get ( $ key ) { $ sh = new BlockShmop ( $ this -> getIdByKey ( $ key ) , 10 ) ; if ( $ time = $ sh -> read ( ) ) { return ( new \ DateTime ( ) ) -> setTimestamp ( $ time ) ; } return ; }
@param string $key

@return \DateTime|null
@param string $key