Skip to content

Commit 3f5534f

Browse files
committed
Remove abstract factory
1 parent 06e5db2 commit 3f5534f

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

src/DocBlock/Tags/Factory/AbstractImplementsFactory.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/DocBlock/Tags/Factory/ImplementsFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @internal This class is not part of the BC promise of this library.
2020
*/
21-
final class ImplementsFactory extends AbstractImplementsFactory
21+
final class ImplementsFactory implements Factory
2222
{
2323
private DescriptionFactory $descriptionFactory;
2424
private TypeResolver $typeResolver;

src/DocBlock/Tags/Factory/TemplateFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace phpDocumentor\Reflection\DocBlock\Tags\Factory;
66

7+
use InvalidArgumentException;
78
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
89
use phpDocumentor\Reflection\DocBlock\Tag;
910
use phpDocumentor\Reflection\DocBlock\Tags\Template;
@@ -36,7 +37,7 @@ public function create(PhpDocTagNode $node, Context $context): Tag
3637
Assert::isInstanceOf($tagValue, TemplateTagValueNode::class);
3738
$name = $tagValue->name;
3839
if ($name === '') {
39-
throw new \InvalidArgumentException('Template name cannot be empty');
40+
throw new InvalidArgumentException('Template name cannot be empty');
4041
}
4142

4243
$description = $tagValue->getAttribute('description');

src/DocBlock/Tags/Factory/TemplateImplementsFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @internal This class is not part of the BC promise of this library.
2020
*/
21-
final class TemplateImplementsFactory extends AbstractImplementsFactory
21+
final class TemplateImplementsFactory implements Factory
2222
{
2323
private DescriptionFactory $descriptionFactory;
2424
private TypeResolver $typeResolver;

0 commit comments

Comments
 (0)