compatibleWith() public static method

public static compatibleWith ( $phpVersion )
Esempio n. 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;
 }