Completed
Push — master ( d9680d...b26789 )
by Pavel
09:43
created

AbstractMacroVariable::runVariableMacro()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 1
nc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ublaboo\Anabelle\Markdown\Macros;
6
7
use Ublaboo\Anabelle\Generator\Exception\DocuGeneratorException;
8
use Ublaboo\Anabelle\Markdown\DocuScope;
9
10
abstract class AbstractMacroVariable
11
{
12
13
	/**
14
	 * @var DocuScope
15
	 */
16
	protected $docuScope;
17
18
19
	public function __construct(DocuScope $docuScope)
20
	{
21
		$this->docuScope = $docuScope;
22
	}
23
24
25
	/**
26
	 * @throws DocuGeneratorException
27
	 */
28
	public function runMacro(
29
		string $inputDirectory,
0 ignored issues
show
Unused Code introduced by
The parameter $inputDirectory is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
		string $outputDirectory,
0 ignored issues
show
Unused Code introduced by
The parameter $outputDirectory is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
		string & $content // Intentionally &
32
	): void
33
	{
34
		$this->runVariableMacro($content);
35
	}
36
37
38
	abstract protected function runVariableMacro(string & $content): void; // Intentionally &
39
}
40