. namespace core_cache; /** * Class wrapping information in the cache that is tagged with a version number. * * @package core_cache * @copyright 2021 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class version_wrapper { /** * The data being stored. * @var mixed */ public $data; /** * Version number for the data * @var int */ public $version; /** * Constructs a version tag wrapper. * * @param mixed $data * @param int $version Version number */ public function __construct($data, int $version) { $this->data = $data; $this->version = $version; } }