getVersion() public method

public getVersion ( ) : string
return string
示例#1
0
 private function initiatePhpVersion($version, PhpInterpreter $interpreter)
 {
     if (preg_match('#^(<=|<|==|=|!=|<>|>=|>)?\\s*(.+)#', $version, $matches) && version_compare($matches[2], $interpreter->getVersion(), $matches[1] ?: '>=')) {
         return array(Runner::SKIPPED, "Requires PHP {$version}.");
     }
 }