platform/api/symfony/Component/Finder/Comparator/NumberComparator.yaml
2024-09-02 10:44:11 -07:00

98 lines
2.2 KiB
YAML

name: NumberComparator
class_comment: '# * 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
# * @author Richard Clamp <richardc@unixbeard.net> Perl version
# * @copyright 2004-2005 Fabien Potencier <fabien@symfony.com>
# * @copyright 2002 Richard Clamp <richardc@unixbeard.net>
# *
# * @see http://physics.nist.gov/cuu/Units/binary.html'
dependencies: []
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: test
comment: '# * 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
# * @author Richard Clamp <richardc@unixbeard.net> Perl version
# * @copyright 2004-2005 Fabien Potencier <fabien@symfony.com>
# * @copyright 2002 Richard Clamp <richardc@unixbeard.net>
# *
# * @see http://physics.nist.gov/cuu/Units/binary.html
# */
# class NumberComparator extends Comparator
# {
# /**
# * @param string|null $test A comparison string or null
# *
# * @throws \InvalidArgumentException If the test is not understood'
traits: []
interfaces: []