public static function initCacheItem(&$item) { $obj = new static($item); $item['name'] = $obj->name; $item['items'] = $obj->items; }