-
-
Save dexit/0829b3d9397709f2a327ed6c9a14903c to your computer and use it in GitHub Desktop.
Boilerplate for a PHP class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* CLASS_NAME setup | |
* | |
* @since 1.0 | |
*/ | |
class CLASS_NAME { | |
private static $instance; | |
/** | |
* Initiator | |
*/ | |
public static function instance(){ | |
if ( ! isset( self::$instance ) ) { | |
self::$instance = new CLASS_NAME(); | |
// self::$instance->includes(); | |
// self::$instance->hooks(); | |
} | |
return self::$instance; | |
} | |
} | |
$CLASS_NAME = CLASS_NAME::instance(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment