Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
1 | <?php |
||
25 | 1 | public function distribute(AssetCollection $assets, ServerCollection $servers) |
|
26 | { |
||
27 | 1 | if ($servers->count() < 1) { |
|
28 | return; |
||
29 | } |
||
30 | 1 | $this->servers = $servers; |
|
31 | 1 | foreach($assets as $asset) { |
|
32 | /** @var \Aoe\Asdis\Domain\Model\Asset $asset */ |
||
33 | 1 | $asset->setServer($this->getNextServer()); |
|
34 | } |
||
49 | } |