| @@ 78-90 (lines=13) @@ | ||
| 75 | return $arrTestVersions; |
|
| 76 | } |
|
| 77 | ||
| 78 | public function supportsAbove($phpVersion) |
|
| 79 | { |
|
| 80 | $testVersion = $this->getTestVersion(); |
|
| 81 | $testVersion = $testVersion[1]; |
|
| 82 | ||
| 83 | if (is_null($testVersion) |
|
| 84 | || version_compare($testVersion, $phpVersion) >= 0 |
|
| 85 | ) { |
|
| 86 | return true; |
|
| 87 | } else { |
|
| 88 | return false; |
|
| 89 | } |
|
| 90 | }//end supportsAbove() |
|
| 91 | ||
| 92 | public function supportsBelow($phpVersion) |
|
| 93 | { |
|
| @@ 92-104 (lines=13) @@ | ||
| 89 | } |
|
| 90 | }//end supportsAbove() |
|
| 91 | ||
| 92 | public function supportsBelow($phpVersion) |
|
| 93 | { |
|
| 94 | $testVersion = $this->getTestVersion(); |
|
| 95 | $testVersion = $testVersion[0]; |
|
| 96 | ||
| 97 | if (!is_null($testVersion) |
|
| 98 | && version_compare($testVersion, $phpVersion) <= 0 |
|
| 99 | ) { |
|
| 100 | return true; |
|
| 101 | } else { |
|
| 102 | return false; |
|
| 103 | } |
|
| 104 | }//end supportsBelow() |
|
| 105 | ||
| 106 | }//end class |
|
| 107 | ||