1: <?php declare(strict_types=1);
2:
3: namespace Salient\PHPDoc\Tag;
4:
5: /**
6: * @api
7: */
8: class GenericTag extends AbstractTag
9: {
10: /**
11: * Creates a new GenericTag object
12: */
13: public function __construct(
14: string $tag,
15: ?string $description = null,
16: ?string $class = null,
17: ?string $member = null
18: ) {
19: parent::__construct($tag, null, null, $description, $class, $member);
20: }
21:
22: /**
23: * @return null
24: */
25: public function getName(): ?string
26: {
27: return null;
28: }
29:
30: /**
31: * @return null
32: */
33: public function getType(): ?string
34: {
35: return null;
36: }
37:
38: /**
39: * @inheritDoc
40: */
41: public function __toString(): string
42: {
43: $string = "@{$this->Tag}";
44: if ($this->Description !== null) {
45: $string .= " {$this->Description}";
46: }
47: return $string;
48: }
49: }
50: