Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • Comparator
  • DateComparator
  • NumberComparator
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class 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.

Symfony\Component\Finder\Comparator\Comparator
Extended by Symfony\Component\Finder\Comparator\NumberComparator
Namespace: Symfony\Component\Finder\Comparator
Copyright: 2004-2005 Fabien Potencier <fabien@symfony.com>
Copyright: 2002 Richard Clamp <richardc@unixbeard.net>
Author: Fabien Potencier <fabien@symfony.com> PHP port
Author: Richard Clamp <richardc@unixbeard.net> Perl version
See: http://physics.nist.gov/cuu/Units/binary.html
Located at finder/Symfony/Component/Finder/Comparator/NumberComparator.php
Methods summary
public
# __construct( string $test )

Constructor.

Constructor.

Parameters

$test
string
$test A comparison string

Throws

InvalidArgumentException
If the test is not understood
Methods inherited from Symfony\Component\Finder\Comparator\Comparator
getOperator(), getTarget(), setOperator(), setTarget(), test()
php-coveralls API documentation generated by ApiGen 2.8.0