mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
41 lines
696 B
PHP
41 lines
696 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package phpOMS\Algorithm\Knappsack
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Algorithm\Knappsack;
|
|
|
|
/**
|
|
* Matching a value with a set of coins
|
|
*
|
|
* @package phpOMS\Algorithm\Knappsack
|
|
* @license OMS License 1.0
|
|
* @link https://orange-management.org
|
|
* @since 1.0.0
|
|
*/
|
|
class Item
|
|
{
|
|
private $value = 0.0;
|
|
|
|
private $cost = 0.0;
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
public function getCost()
|
|
{
|
|
return $this->cost;
|
|
}
|
|
}
|