Skip to content

Instantly share code, notes, and snippets.

@JordanDalton
Created August 20, 2014 18:12
Show Gist options
  • Save JordanDalton/065bf965cd1ec945080b to your computer and use it in GitHub Desktop.
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.
#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