--Larry Garfield
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscribe@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/5346F88A.4020008%40garfieldtech.com.
For more options, visit https://groups.google.com/d/optout.
This thread isn't about standardized use of traits. It's about standardizing documentation for when a a trait would fulfill an interface if it were used. It's a much narrower scope.
@see [URI | "FQSEN"] [<:type:>] [<description>]
The :type: element would provide ample opportunity to finesse what might well be too generic for the elements that Larry puts forward; it might be that something like the following would fit:
/**
* @see FooInterface :satisfies:
*/
trait FooTrait
{
}
However, this is a little clunky, not particularly elegant and doesn't read particularly well.
Which is where (shameless self-plug) my suggestion of a month ago - introduce the concept of a tag-class element to a standard tag construct - comes in:
https://github.com/phpDocumentor/fig-standards/issues/43
It would therefore read a bit more fluently:
/**
* @see:satisfies FooInterface
*/
trait FooTrait
{
}
Anyway, my two cents...
Chris
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CADTuZWBE%2BiXxg95tQ9R%3DcdyiP27kFFAfuHHqEfnbfkqwHQ4LPQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CANj_AqjsUyqzXjZ%3DmMTWfLr%2BvFNOQUJRvBt%3DWx_cybZ8S5r-VA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CADTuZWBcsUpMV5A_rEqJ00zEMQYsYtOJDnwQUbv49fxhkV1MoA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAE%3De0zdUppRrABSsxUmtX%2BS557cCWm_4q9MDUHQ2dGCvHUzGrQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/534AD0E1.50903%40garfieldtech.com.
My general thought was that the important, standardized part is the tag; any parser would only be forced to care about the tag itself and discard the remainder unless there's support for a separately defined subclass.
My original motivation behind this suggestion was how best to link from a class to its test(s) - that kind of relational link is well catered for with the well-defined and widespread @see tag but lacks the ability to define the relation.
This mechanism might also be useful in heading off future expansion of the standard in that a large number of use cases would slot nicely into the scheme.
Chris
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/534AD0E1.50903%40garfieldtech.com.