1 | <?php |
||
23 | class Response |
||
24 | { |
||
25 | /** |
||
26 | * The file that represents the response. |
||
27 | * |
||
28 | * @var FileInterface |
||
29 | */ |
||
30 | private $file; |
||
31 | |||
32 | /** |
||
33 | * We cache the translations internally. |
||
34 | * |
||
35 | * @var Translations |
||
36 | */ |
||
37 | private $translations; |
||
38 | |||
39 | |||
40 | /** |
||
41 | * Create a new response object by passing the file into it. |
||
42 | * |
||
43 | * @param FileInterface $file |
||
44 | */ |
||
45 | 6 | public function __construct(FileInterface $file) |
|
49 | |||
50 | /** |
||
51 | * Get the information attached to the response. |
||
52 | * |
||
53 | * @return Info |
||
54 | */ |
||
55 | 3 | public function getInfo() |
|
59 | |||
60 | /** |
||
61 | * Get the translations attached to the response. |
||
62 | * |
||
63 | * @return Translations |
||
64 | */ |
||
65 | 3 | public function getTranslations() |
|
73 | } |
||
74 |