| 1 | <?php |
||
| 15 | class Document |
||
| 16 | { |
||
| 17 | /** @var string */ |
||
| 18 | private $content; |
||
| 19 | |||
| 20 | /** @var array<string, mixed> */ |
||
| 21 | private $data; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $content |
||
| 25 | * @param array<string, mixed> $data |
||
| 26 | */ |
||
| 27 | public function __construct(string $content = '', array $data = []) |
||
| 32 | |||
| 33 | public function getContent(): string |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return array<string, mixed> |
||
|
|
|||
| 40 | */ |
||
| 41 | public function getData(): array |
||
| 45 | |||
| 46 | public function getDataWithContent(string $key = '__content'): array |
||
| 50 | |||
| 51 | public function setContent(string $content): self |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param array<string, mixed> $data |
||
| 60 | * @return $this |
||
| 61 | */ |
||
| 62 | public function setData(array $data): self |
||
| 68 | |||
| 69 | public function __toString(): string |
||
| 73 | } |
||
| 74 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.