| 1 | <?php |
||
| 22 | class Translation |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * The response file. |
||
| 26 | * |
||
| 27 | * @var FileInterface |
||
| 28 | */ |
||
| 29 | private $file; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The file information. |
||
| 33 | * |
||
| 34 | * @var InfoFile |
||
| 35 | */ |
||
| 36 | private $info; |
||
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * Construct a new translation by passing te response file and the filename. |
||
| 41 | * |
||
| 42 | * @param FileInterface $file |
||
| 43 | * The Response file object. |
||
| 44 | * @param InfoFile $info |
||
| 45 | * The file info object. |
||
| 46 | */ |
||
| 47 | 15 | public function __construct(FileInterface $file, InfoFile $info) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Get the file info. |
||
| 55 | * |
||
| 56 | * @return InfoFile |
||
| 57 | */ |
||
| 58 | 6 | public function getInfo() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Get the translation content. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 3 | public function getContent() |
|
| 74 | } |
||
| 75 |