Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/04-adding-your-own-tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require_once(__DIR__ . '/../vendor/autoload.php');

use phpDocumentor\Reflection\DocBlock\Serializer;
use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
Expand All @@ -30,9 +30,10 @@
* documentation in the form of a Value Object whose properties should not be changed after instantiation (it should be
* immutable).
*
* > Important: Tag classes that act as Factories using the `create` method should implement the TagFactory interface.
* > Important: Tag classes that act as Factories using the `create` method should implement the Tag interface.
* > Instead, you could extend the abstract class BaseTag that already implements the Tag interface
*/
final class MyTag extends BaseTag implements StaticMethod
final class MyTag extends BaseTag
{
/**
* A required property that is used by Formatters to reconstitute the complete tag line.
Expand Down