Pinq\Iterators\Standard\IteratorScheme::compatibleWith PHP Метод

compatibleWith() публичный статический Метод

public static compatibleWith ( $phpVersion )
    public static function compatibleWith($phpVersion)
    {
        return version_compare($phpVersion, '5.4.0', '>=');
    }

Usage Example

Пример #1
0
 /**
  * @return IIteratorScheme[]
  */
 public static function getAvailableSchemes()
 {
     if (self::$schemesInPriorityOrder === null) {
         if (Generators\GeneratorScheme::compatibleWith(PHP_VERSION)) {
             self::$schemesInPriorityOrder[] = new Generators\GeneratorScheme();
         }
         if (Standard\IteratorScheme::compatibleWith(PHP_VERSION)) {
             self::$schemesInPriorityOrder[] = new Standard\IteratorScheme();
         }
     }
     return self::$schemesInPriorityOrder;
 }