1 | <?php |
||
20 | final class Artefact |
||
21 | { |
||
22 | /** @var Path Where to store the Artefact relative to the destination specified to the renderer */ |
||
23 | private $location; |
||
24 | |||
25 | /** @var string the contents of this artefact */ |
||
26 | private $content; |
||
27 | |||
28 | /** |
||
29 | * @param Path $location |
||
30 | * @param string $content |
||
31 | */ |
||
32 | public function __construct(Path $location, $content) |
||
37 | |||
38 | /** |
||
39 | * Returns the location where this artefact is supposed to be stored relative. |
||
40 | * |
||
41 | * @return Path |
||
42 | */ |
||
43 | public function location() |
||
47 | |||
48 | /** |
||
49 | * Returns the artefact's contents. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function content() |
||
57 | } |
||
58 |