Esempio n. 1
0
 /**
  * Returns a suitable transfer roller to be used for this spec
  *
  * @return null|TransferRoller
  */
 public function transferRoller()
 {
     if ($this->productionSequence()->production_sequence_one_layer_lam || $this->productionSequence()->production_sequence_2_layer_lam) {
         return TransferRoller::largestSuitableForMaterialWidthBetween($this->jobCosting->target_width, $this->narrowest_allocated_material_width)->first();
     }
     return null;
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function it_returns_null_if_no_suitable_roller_for_material_width_between_bounds()
 {
     $unsuitableRoller = factory(App\Models\TransferRoller::class)->create(['transfer_rollers_length' => 1350]);
     $scopedRoller = App\Models\TransferRoller::largestSuitableForMaterialWidthBetween(600, 700)->first();
     $this->assertNull($scopedRoller);
 }