| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Services;
- use App\Batch;
- use App\StationRuleBatch;
- use Illuminate\Support\Facades\Cache;
- class StationTypeService
- {
- /** @var StationRuleBatchService $stationRuleBatchService */
- private $stationRuleBatchService;
- public function __construct()
- {
- $this->stationRuleBatchService=null;
- }
- function getByBatch(Batch $batch): StationRuleBatch
- {
- $this->stationRuleBatchService=app('StationRuleBatchService');
- $stationRuleBatch=$this->stationRuleBatchService->getByBatch($batch);
- return $stationRuleBatch['stationType'];
- }
- }
|