Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/binary/PhutilBinaryAnalyzer.php
Show All 37 Lines | final public function requireBinaryVersion() { | ||||
return $version; | return $version; | ||||
} | } | ||||
final public function getBinaryPath() { | final public function getBinaryPath() { | ||||
return $this->newBinaryPath(); | return $this->newBinaryPath(); | ||||
} | } | ||||
final public static function getAllBinaries() { | final public static function getAllBinaries() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->setUniqueMethod('getBinaryKey') | ->setUniqueMethod('getBinaryKey') | ||||
->setSortMethod('getBinaryName') | ->setSortMethod('getBinaryName') | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
final public static function getForBinary($binary) { | final public static function getForBinary($binary) { | ||||
$map = self::getAllBinaries(); | $map = self::getAllBinaries(); | ||||
Show All 13 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0