Back to Patcher class

Method getInstance

public static \Joomla\CMS\Filesystem\Patcher
getInstance
()
Method to get a patcher
Returns
  • \Joomla\CMS\Filesystem\Patcher an instance of the patcher
Since
  • 3.0.0
Class: Patcher
Project: Joomla

Method getInstance - Source code

/**
 * Method to get a patcher
 *
 * @return  Patcher  an instance of the patcher
 *
 * @since   3.0.0
 */
public static function getInstance()
{
    if (!isset(static::$instance)) {
        static::$instance = new static();
    }
    return static::$instance;
}