| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Export implements ShouldQueue |
||
| 13 | { |
||
| 14 | use InteractsWithQueue, Queueable, SerializesModels; |
||
|
|
|||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new job instance. |
||
| 18 | * |
||
| 19 | * @param \ExportHistory $export |
||
| 20 | * |
||
| 21 | * @throws \PropelException |
||
| 22 | */ |
||
| 23 | public function __construct(ExportHistory $export) |
||
| 24 | { |
||
| 25 | //new up a laravel container |
||
| 26 | Container::setInstance(new Container); |
||
| 27 | |||
| 28 | $addLanguage = $export->getSelectedLanguage(); |
||
| 29 | $schema = $export->getSchema(); |
||
| 30 | $vocabulary = $export->getVocabulary(); |
||
| 31 | $defaultLanguage = $schema ? $schema->getLanguage() : $vocabulary->getLanguage(); |
||
| 32 | |||
| 33 | if ($addLanguage) { |
||
| 34 | $languages = [$defaultLanguage, $addLanguage]; |
||
| 35 | } else { |
||
| 36 | $languages = [$defaultLanguage]; |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Execute the job. |
||
| 42 | * |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | public function handle() |
||
| 47 | // |
||
| 48 | } |
||
| 50 |