Created
March 20, 2014 23:41
-
-
Save mikedfunk/9676408 to your computer and use it in GitHub Desktop.
phpdoc and psr-2 class example
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
<?php | |
/** | |
* Description | |
* | |
* @package RacingJunk | |
* @copyright 2014 Internet Brands, Inc. All Rights Reserved. | |
*/ | |
namespace InternetBrands\RacingJunk; | |
/** | |
* ClassName | |
* | |
* @author Michael Funk <[email protected]> | |
*/ | |
class ClassName | |
{ | |
/** | |
* Description | |
* | |
* @var MyClass | |
*/ | |
protected $myvar; | |
/** | |
* Description | |
* | |
* @var string | |
*/ | |
const MY_CONSTANT = 'whatever'; | |
/** | |
* Description | |
* | |
* @param string $my_param (default: 'test') | |
* @return void | |
*/ | |
public function functionname($my_param = 'test') | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment