Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created March 20, 2014 23:41
Show Gist options
  • Save mikedfunk/9676408 to your computer and use it in GitHub Desktop.
Save mikedfunk/9676408 to your computer and use it in GitHub Desktop.
phpdoc and psr-2 class example
<?php
/**
* Description
*
* @package RacingJunk
* @copyright 2014 Internet Brands, Inc. All Rights Reserved.
*/
namespace InternetBrands\RacingJunk;
/**
* ClassName
*
* @author Michael Funk <mfunk@internetbrands.com>
*/
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