Created
October 28, 2016 20:13
-
-
Save tomasfejfar/15d63aa053e7c148d3730de738e0ebfd to your computer and use it in GitHub Desktop.
Complex Velocity PhpStorm file template
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
#set($NameLenght = $NAME.length() - 5) | |
#set($ClassName = $NAME.substring(0, $NameLenght)) | |
#set($TableName = $ClassName.toLowerCase()) | |
#set($TablePrefix = $Namespace.toLowerCase()) | |
#set($NAMESPACE = $Namespace) | |
#set($TYPE_TAG = '@var') | |
#set($TYPE_HINT = 'string') | |
<?php | |
namespace ${Namespace}; | |
#parse("PHP Class Doc Comment.php") | |
class ${ClassName} | |
{ | |
#parse("PHP Field Doc Comment.php") | |
protected ${DS}tableName = '${TablePrefix}_${TableName}'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment