phpOMS/Algorithm/Knappsack/Item.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;
}
}