Last active
December 15, 2015 05:49
-
-
Save lumpysimon/5212018 to your computer and use it in GitHub Desktop.
Sublime Text snippet: PHP class with __construct function
This file contains 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
<snippet> | |
<content><![CDATA[ | |
defined( 'ABSPATH' ) or die(); | |
\$$1 = new $1; | |
class $1 { | |
function __construct() { | |
$0 | |
} | |
} // class | |
$2 | |
]]></content> | |
<tabTrigger>lclass</tabTrigger> | |
<scope>source.php</scope> | |
<description>new class (Lumpy PHP)</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment