| 1 | <?php |
||
| 9 | final class TargetLink implements TargetLinkInterface |
||
| 10 | { |
||
| 11 | /** @var TargetDefinitionInterface */ |
||
| 12 | private $target; |
||
| 13 | /** @var string[] */ |
||
| 14 | private $sources = []; |
||
| 15 | /** @var string */ |
||
| 16 | private $template; |
||
| 17 | /** @var SourceFiller[] */ |
||
| 18 | private $fillers = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * TargetLink constructor. |
||
| 22 | * |
||
| 23 | * @param TargetDefinitionInterface $target |
||
| 24 | * @param string[] $sources |
||
| 25 | * @param string $template |
||
| 26 | * @param SourceFiller[] $fillers |
||
| 27 | */ |
||
| 28 | 2 | public function __construct(TargetDefinitionInterface $target, $template, array $sources, array $fillers = []) |
|
| 35 | |||
| 36 | /** {@inheritdoc} */ |
||
| 37 | 1 | public function getTarget() |
|
| 41 | |||
| 42 | /** {@inheritdoc} */ |
||
| 43 | 1 | public function getSources() |
|
| 47 | |||
| 48 | /** {@inheritdoc} */ |
||
| 49 | 1 | public function getTitleTemplate() |
|
| 53 | |||
| 54 | /** {@inheritdoc} */ |
||
| 55 | 1 | public function getFillers() |
|
| 59 | } |
||
| 60 |