for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* Created by Vitaly Iegorov <[email protected]>.
* on 07.04.17 at 07:43
*/
namespace samsonframework\stringconditiontree\string;
* Null character group with lowest priority.
*
* @author Vitaly Egorov <[email protected]>
class NullCG extends AbstractCG
{
* NullCG constructor.
public function __construct()
parent::__construct('', 0);
}
* @inheritdoc
public function getCommonPrefix(AbstractCG $group): string
return '';
protected function compareLength(AbstractCG $group): int
// Passed character group always has higher priority
return -1;