for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace drupol\phpartition\Algorithm;
use drupol\phpartition\BasePartitionAlgorithm;
use drupol\phpartition\PartitionAlgorithmInterface;
use drupol\phpartition\Subset;
/**
* Class Simple.
*
* @package drupol\phpartition\Algorithm
*/
class Simple extends BasePartitionAlgorithm implements PartitionAlgorithmInterface {
* @param \drupol\phpartition\Subset $subset
* @return int
public function getSubsetWeight(Subset $subset) {
return count($subset->getItems());
}