1 | <?php |
||
19 | class Context |
||
20 | { |
||
21 | /** |
||
22 | * @var Readable |
||
23 | */ |
||
24 | private $file; |
||
25 | |||
26 | /** |
||
27 | * @var Definition |
||
28 | */ |
||
29 | private $definition; |
||
30 | |||
31 | /** |
||
32 | * Context constructor. |
||
33 | * @param Readable $file |
||
34 | * @param Definition $definition |
||
35 | */ |
||
36 | public function __construct(Readable $file, Definition $definition) |
||
41 | |||
42 | /** |
||
43 | * @return Document |
||
44 | */ |
||
45 | public function getDocument(): Document |
||
49 | |||
50 | /** |
||
51 | * @return Readable |
||
52 | */ |
||
53 | public function getFile(): Readable |
||
57 | |||
58 | /** |
||
59 | * @return Definition |
||
60 | */ |
||
61 | public function getDefinition(): Definition |
||
65 | } |
||
66 |