/** * Returns an instance of self * * This is the usual singleton function that returns / instantiates the object * * @return PhpThumb */ public static function getInstance() { if (!self::$_instance instanceof self) { self::$_instance = new self(); } return self::$_instance; }