Created
July 17, 2015 22:18
-
-
Save LinzardMac/a3e97f514aeeee5ec2f9 to your computer and use it in GitHub Desktop.
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
final class myClass { | |
private static $instance; | |
public static function instance() { | |
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof myClass ) ) { | |
self::$instance = new myClass; | |
self::$instance->setup_constants(); | |
} | |
return self::$instance; | |
} | |
private function setup_constants() { | |
// Client Acess Token | |
define( 'BIW_CLIENT_ID', '89345938645936b' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment