/** * Create new factory instance. * * @return Slicer */ public static function create() { $factory = new static(); if (NULL === Factory::$instance) { Factory::$instance = $factory->createSlicer(); } return Factory::$instance; }