StationTypeService.php 604 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Services;
  3. use App\Batch;
  4. use App\StationRuleBatch;
  5. use Illuminate\Support\Facades\Cache;
  6. class StationTypeService
  7. {
  8. /** @var StationRuleBatchService $stationRuleBatchService */
  9. private $stationRuleBatchService;
  10. public function __construct()
  11. {
  12. $this->stationRuleBatchService=null;
  13. }
  14. function getByBatch(Batch $batch): StationRuleBatch
  15. {
  16. $this->stationRuleBatchService=app('StationRuleBatchService');
  17. $stationRuleBatch=$this->stationRuleBatchService->getByBatch($batch);
  18. return $stationRuleBatch['stationType'];
  19. }
  20. }