Commits

Mark Story committed 5e1fae6

Update documentation for traits.

  • Participants
  • Parent commits c1b9f44

Comments (0)

Files changed (2)

phpdomain/CHANGES

+0.1.4
+=====
+
+* Added support for traits.
+
 0.1.3
 =====
 
 0.1.0
 =====
 
-* Initial release.
+* Initial release.

phpdomain/doc/reference.rst

    Describe an interface.  Methods and constants belonging to the interface 
    should follow or be nested inside this directive.
 
+.. rst:directive:: .. php:trait:: name
+
+   Describe a trait.  Methods beloning to the trait should follow or be nested
+   inside this directive.
+
 .. rst:directive:: .. php:class:: name
 
    Describes a class.  Methods, attributes, and constants belonging to the class
 
 .. rst:role:: php:meth
 
-   Reference a method of a class. This role supports both kinds of methods::
+   Reference a method of a class/interface/trait. This role supports
+   both kinds of methods::
    
      :php:meth:`DateTime::setDate`
      :php:meth:`Classname::staticMethod`
 .. rst:role:: php:interface
 
    Reference an interface.  A namespaced name may be used.
+
+.. rst:role:: php:trait
+
+   Reference a trait. A namespaced name may be used.
+