1: <?php declare(strict_types = 1);
2:
3: namespace ApiGen\Info;
4:
5: use ApiGen\Index\Index;
6: use ApiGen\Info\Traits\HasLineLocation;
7: use ApiGen\Info\Traits\HasTags;
8: use ApiGen\Info\Traits\HasVisibility;
9: use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode;
10:
11:
12: abstract class MemberInfo
13: {
14: use HasTags;
15: use HasLineLocation;
16: use HasVisibility;
17:
18:
19: /** @var string */
20: public string $name;
21:
22: /** @var bool */
23: public bool $magic = false;
24:
25:
26: public function __construct(string $name)
27: {
28: $this->name = $name;
29: }
30:
31:
32: /**
33: * @return PhpDocTextNode[] indexed by []
34: */
35: public function getEffectiveDescription(Index $index, ClassLikeInfo $classLike): array
36: {
37: return $this->description;
38: }
39: }
40: