Jyxo\Spl\ObjectCacheTest::saveObject PHP Method

saveObject() private method

Saves an object into cache.
private saveObject ( ) : stdClass
return stdClass
    private function saveObject()
    {
        $object = new \stdClass();
        $object->question = 'The Answer to the Ultimate Question of Life, the Universe, and Everything.';
        $object->answer = 42;
        $this->cache->{self::CACHE_KEY} = $object;
        return $object;
    }