-
-
Save adrienbrault/3376336 to your computer and use it in GitHub Desktop.
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
<?php | |
class OptionA | |
{ | |
/** | |
* @var \DateTime $date | |
*/ | |
private $date; | |
// the $date in the docblock seems redundant? | |
} | |
class OptionB | |
{ | |
/** | |
* @var \DateTime | |
*/ | |
private $date; | |
// | |
} | |
class OptionC | |
{ | |
/** | |
* @var \DateTime The date of creation | |
*/ | |
private $date; | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@adrienbrault cheers. That probably works for properties that can be described briefly. What if you need to describe a property with more than one sentence? E.g.