Skip to content

Commit

Permalink
Remove abstract factory
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Aug 14, 2024
1 parent 06e5db2 commit 3f5534f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
19 changes: 0 additions & 19 deletions src/DocBlock/Tags/Factory/AbstractImplementsFactory.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/DocBlock/Tags/Factory/ImplementsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @internal This class is not part of the BC promise of this library.
*/
final class ImplementsFactory extends AbstractImplementsFactory
final class ImplementsFactory implements Factory
{
private DescriptionFactory $descriptionFactory;
private TypeResolver $typeResolver;
Expand Down
3 changes: 2 additions & 1 deletion src/DocBlock/Tags/Factory/TemplateFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace phpDocumentor\Reflection\DocBlock\Tags\Factory;

use InvalidArgumentException;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tags\Template;
Expand Down Expand Up @@ -36,7 +37,7 @@ public function create(PhpDocTagNode $node, Context $context): Tag
Assert::isInstanceOf($tagValue, TemplateTagValueNode::class);
$name = $tagValue->name;
if ($name === '') {
throw new \InvalidArgumentException('Template name cannot be empty');
throw new InvalidArgumentException('Template name cannot be empty');
}

$description = $tagValue->getAttribute('description');
Expand Down
2 changes: 1 addition & 1 deletion src/DocBlock/Tags/Factory/TemplateImplementsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @internal This class is not part of the BC promise of this library.
*/
final class TemplateImplementsFactory extends AbstractImplementsFactory
final class TemplateImplementsFactory implements Factory
{
private DescriptionFactory $descriptionFactory;
private TypeResolver $typeResolver;
Expand Down

0 comments on commit 3f5534f

Please sign in to comment.