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; }