Last active
August 5, 2020 07:56
-
-
Save dingo-d/3fb97f1f745bd76b5fbda98185941927 to your computer and use it in GitHub Desktop.
PHPStorm PHP class file templates (class, trait and interfaces). To modify go to Settings > Editor > File and Code Templates
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
<?php | |
/** | |
* File holding ${NAME} class | |
* | |
#if (${NAMESPACE}) * @package ${NAMESPACE} | |
#end | |
* @since | |
*/ | |
declare(strict_types=1); | |
#parse("PHP File Header.php") | |
#if (${NAMESPACE}) | |
namespace ${NAMESPACE}; | |
#end | |
/** | |
* ${NAME} class | |
* | |
#if (${NAMESPACE}) * @package ${NAMESPACE} | |
#end | |
* @since | |
*/ | |
class ${NAME} { | |
} |
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
<?php | |
/** | |
* File holding ${NAME} interface | |
* | |
#if (${NAMESPACE}) * @package ${NAMESPACE} | |
#end | |
* @since | |
*/ | |
declare(strict_types=1); | |
#parse("PHP File Header.php") | |
#if (${NAMESPACE}) | |
namespace ${NAMESPACE}; | |
#end | |
/** | |
* ${NAME} interface | |
* | |
#if (${NAMESPACE}) * @package ${NAMESPACE} | |
#end | |
* @since | |
*/ | |
interface ${NAME} { | |
} |
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
<?php | |
/** | |
* File holding ${NAME} trait | |
* | |
#if (${NAMESPACE}) * @package ${NAMESPACE} | |
#end | |
* @since | |
*/ | |
declare(strict_types=1); | |
#parse("PHP File Header.php") | |
#if (${NAMESPACE}) | |
namespace ${NAMESPACE}; | |
#end | |
/** | |
* ${NAME} trait | |
* | |
#if (${NAMESPACE}) * @package ${NAMESPACE} | |
#end | |
* @since | |
*/ | |
trait ${NAME} { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment