Created
June 13, 2022 08:32
-
-
Save SelrahcD/64f666b14ba6594ec00e406934aca75e to your computer and use it in GitHub Desktop.
Phpstorm Wither live template
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
<template name="with" value="public function with$NAME$($PARAMETER_TYPE$ $$$PARAMETER_NAME$): self { 	$clone = clone $this; 	 	$clone->$PARAMETER_NAME$$END$ = $$$PARAMETER_NAME$; 	 	return $clone; }" description="Create a wither" toReformat="false" toShortenFQNames="true"> | |
<variable name="PARAMETER_TYPE" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="PARAMETER_NAME" expression="complete()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="NAME" expression="" defaultValue="capitalize(PARAMETER_NAME)" alwaysStopAt="false" /> | |
<context> | |
<option name="PHP Class Member" value="true" /> | |
</context> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment