Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
diplex
/
wp-content
/
plugins
/
enhanced-text-widget
/
analyst
/
src
/
Core
:
AbstractFactory.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Analyst\Core; abstract class AbstractFactory { /** * Unserialize to static::class instance * * @param $raw * @return static */ protected static function unserialize($raw) { $instance = maybe_unserialize($raw); $isProperObject = is_object($instance) && $instance instanceof static; // In case for some reason unserialized object is not // static::class we make sure it is static::class if (!$isProperObject) { $instance = new static(); } return $instance; } }