Skip to content

Commit 83a80a6

Browse files
committed
[FEATURE] Introduce NavigationTitle
(cherry picked from commit caa17bf)
1 parent f3a1d97 commit 83a80a6

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of phpDocumentor.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* @link https://phpdoc.org
12+
*/
13+
14+
namespace phpDocumentor\Guides\Event;
15+
16+
use phpDocumentor\Guides\Compiler\CompilerContextInterface;
17+
use phpDocumentor\Guides\Nodes\DocumentNode;
18+
use phpDocumentor\Guides\Nodes\Node;
19+
20+
final class ModifyDocumentEntryAdditionalData
21+
{
22+
/** @param array<string, Node> $additionalData */
23+
public function __construct(
24+
private array $additionalData,
25+
private readonly DocumentNode $documentNode,
26+
private readonly CompilerContextInterface $compilerContext,
27+
) {
28+
}
29+
30+
/** @return array<string, Node> */
31+
public function getAdditionalData(): array
32+
{
33+
return $this->additionalData;
34+
}
35+
36+
/** @param array<string, Node> $additionalData */
37+
public function setAdditionalData(array $additionalData): ModifyDocumentEntryAdditionalData
38+
{
39+
$this->additionalData = $additionalData;
40+
41+
return $this;
42+
}
43+
44+
public function getDocumentNode(): DocumentNode
45+
{
46+
return $this->documentNode;
47+
}
48+
49+
public function getCompilerContext(): CompilerContextInterface
50+
{
51+
return $this->compilerContext;
52+
}
53+
}

0 commit comments

Comments
 (0)