This commit is contained in:
Jaapio
2026-01-05 20:49:06 +01:00
parent 92ecf5dcfd
commit cd04bb47b5
20 changed files with 181 additions and 10 deletions
+9
View File
@@ -0,0 +1,9 @@
How to Add Your Own Tag
=======================
This guide demonstrates how to add your own custom tag to a DocBlock using ReflectionDocBlock.
.. literalinclude:: ../examples/04-adding-your-own-tag.php
:language: php
:linenos:
+13
View File
@@ -0,0 +1,13 @@
How-to Guides
=============
Practical guides for common tasks with ReflectionDocBlock:
.. toctree::
:maxdepth: 1
interpreting-a-simple-docblock
interpreting-tags
reconstituting-a-docblock
adding-your-own-tag
@@ -0,0 +1,9 @@
How to Interpret a Simple DocBlock
==================================
This guide demonstrates how to parse a simple DocBlock and extract its summary and description using ReflectionDocBlock.
.. literalinclude:: ../examples/01-interpreting-a-simple-docblock.php
:language: php
:linenos:
+9
View File
@@ -0,0 +1,9 @@
How to Interpret Tags in a DocBlock
===================================
This guide demonstrates how to interpret tags within a DocBlock using ReflectionDocBlock.
.. literalinclude:: ../examples/02-interpreting-tags.php
:language: php
:linenos:
@@ -0,0 +1,9 @@
How to Reconstitute a DocBlock
==============================
ReflectionDocBlock not only allows you to read and interpret DocBlocks, but also to reconstruct them. This is useful if you need to add, remove, or modify tags in your codebase programmatically.
.. literalinclude:: ../examples/03-reconstituting-a-docblock.php
:language: php
:linenos: