Skip to content

Instantly share code, notes, and snippets.

@imhoffd
Last active January 4, 2016 06:59
Show Gist options
  • Save imhoffd/8585736 to your computer and use it in GitHub Desktop.
Save imhoffd/8585736 to your computer and use it in GitHub Desktop.
Proper attribute documentation for PHPDoc & PHP Getters & Setters
<?php
namespace Awesome;
class MyClass
{
/**
* object for something something something
*
* @var \Awesome\OtherClass
*/
protected $object;
/**
* number of people I know
*
* @var int
*/
protected $numberOfPeople;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment