Skip to content

This PHP code defines a Warehouse class and a shipmentBottles function to distribute a given number of bottles equally among different sections of a warehouse.

Notifications You must be signed in to change notification settings

georgs-jegers/warehouse-bottle-distribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Warehouse Bottles Distribution

This PHP code defines a Warehouse class and a requestBottles function to distribute a given number of bottles equally among different sections of a warehouse.

Example Usage

$warehouse = new Warehouse([
    'section1' => 2,
    'section2' => 5,
    'section3' => 10
]);

$warehouse->shipmentBottles(11);

Running the Code

php index.php

About

This PHP code defines a Warehouse class and a shipmentBottles function to distribute a given number of bottles equally among different sections of a warehouse.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages