Symfony\Component\Finder\Comparator\NumberComparator
NumberComparator compiles a simple comparison to an anonymous subroutine, which you can call with a value to be tested again.
Now this would be very pointless, if NumberCompare didn't understand
magnitudes.
The target value may use magnitudes of kilobytes (k, ki),
megabytes (m, mi), or gigabytes (g, gi). Those suffixed
with an i use the appropriate 2**n version in accordance with the
IEC standard: http://physics.nist.gov/cuu/Units/binary.html
Based on the Perl Number::Compare module.
- Author: Fabien Potencier <fabien@symfony.com> PHP port
- Copyright: 2004-2005 Fabien Potencier <fabien@symfony.com>
Synopsis
class NumberComparator
extends Comparator
{
- // methods
- public void __construct()
- // Inherited methods from Comparator
- public string getTarget()
- public void setTarget()
- public string getOperator()
- public void setOperator()
- public Boolean test()
Hierarchy
Methods
Inherited from Symfony\Component\Finder\Comparator\Comparator
public
- getOperator() — Gets the comparison operator.
- getTarget() — Gets the target value.
- setOperator() — Sets the comparison operator.
- setTarget() — Sets the target value.
- test() — Tests against the target.