Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.116.42.143
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
phar-io /
version /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
constraints
[ DIR ]
drwxr-xr-x
2018-07-08 09:00
exceptions
[ DIR ]
drwxr-xr-x
2018-07-08 09:00
PreReleaseSuffix.php
1.85
KB
-rw-r--r--
2018-07-08 09:00
Version.php
4.09
KB
-rw-r--r--
2018-07-08 09:00
VersionConstraintParser.php
3.41
KB
-rw-r--r--
2018-07-08 09:00
VersionConstraintValue.php
2.51
KB
-rw-r--r--
2018-07-08 09:00
VersionNumber.php
802
B
-rw-r--r--
2018-07-08 09:00
Save
Rename
<?php namespace PharIo\Version; class VersionConstraintValue { /** * @var VersionNumber */ private $major; /** * @var VersionNumber */ private $minor; /** * @var VersionNumber */ private $patch; /** * @var string */ private $label = ''; /** * @var string */ private $buildMetaData = ''; /** * @var string */ private $versionString = ''; /** * @param string $versionString */ public function __construct($versionString) { $this->versionString = $versionString; $this->parseVersion($versionString); } /** * @return string */ public function getLabel() { return $this->label; } /** * @return string */ public function getBuildMetaData() { return $this->buildMetaData; } /** * @return string */ public function getVersionString() { return $this->versionString; } /** * @return VersionNumber */ public function getMajor() { return $this->major; } /** * @return VersionNumber */ public function getMinor() { return $this->minor; } /** * @return VersionNumber */ public function getPatch() { return $this->patch; } /** * @param $versionString */ private function parseVersion($versionString) { $this->extractBuildMetaData($versionString); $this->extractLabel($versionString); $versionSegments = explode('.', $versionString); $this->major = new VersionNumber($versionSegments[0]); $minorValue = isset($versionSegments[1]) ? $versionSegments[1] : null; $patchValue = isset($versionSegments[2]) ? $versionSegments[2] : null; $this->minor = new VersionNumber($minorValue); $this->patch = new VersionNumber($patchValue); } /** * @param string $versionString */ private function extractBuildMetaData(&$versionString) { if (preg_match('/\+(.*)/', $versionString, $matches) == 1) { $this->buildMetaData = $matches[1]; $versionString = str_replace($matches[0], '', $versionString); } } /** * @param string $versionString */ private function extractLabel(&$versionString) { if (preg_match('/\-(.*)/', $versionString, $matches) == 1) { $this->label = $matches[1]; $versionString = str_replace($matches[0], '', $versionString); } } }