Created
August 20, 2014 18:12
-
-
Save JordanDalton/065bf965cd1ec945080b to your computer and use it in GitHub Desktop.
PHPStorm file template for quickly generating a presenter that utilizes Shawn McCool's Laravel-Auto-Presenter.
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
#if (${NAMESPACE}) | |
<?php namespace ${NAMESPACE}; | |
#else | |
<?php | |
#end | |
use McCool\LaravelAutoPresenter\BasePresenter; | |
class ${NAME} extends BasePresenter { | |
/** | |
* Create new ${NAME} instance. | |
* @param ${MODEL} ${MODEL_VARIABLE_NAME} | |
*/ | |
public function __construct( ${MODEL} ${MODEL_VARIABLE_NAME} ) | |
{ | |
\$this->resource = ${MODEL_VARIABLE_NAME}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment