1 | <?php |
||
18 | final class SourceOutput |
||
19 | { |
||
20 | /** |
||
21 | * @var SourceInterface |
||
22 | */ |
||
23 | private $source; |
||
24 | |||
25 | 1 | public function __construct(SourceInterface $source) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function outputId() : string |
||
37 | |||
38 | /** |
||
39 | * Pathname (relative). |
||
40 | */ |
||
41 | public function pathname() : string |
||
45 | |||
46 | /** |
||
47 | * Suggested permalink. |
||
48 | */ |
||
49 | 1 | public function permalink() : Permalink |
|
53 | |||
54 | 1 | public function hasFileReference() : bool |
|
58 | |||
59 | /** |
||
60 | * @return SplFileInfo|null |
||
61 | */ |
||
62 | 1 | public function file() |
|
66 | |||
67 | /** |
||
68 | * Formatted content (if not hasFileReference). |
||
69 | * |
||
70 | * @return string|null |
||
71 | */ |
||
72 | public function formattedContent() |
||
76 | } |
||
77 |