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\Partition;
use drupol\phpartition\PartitionAlgorithmInterface;
/**
* Class Simple.
*
* @package drupol\phpartition\Algorithm
*/
class Simple extends BasePartitionAlgorithm implements PartitionAlgorithmInterface {
* {@inheritdoc}
public function getPartitionWeight(Partition $partition) {
return $partition->count();
}