[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class DiffusionCommitHash extends Phobject { 4 5 private $hashType; 6 private $hashValue; 7 8 public function setHashValue($hash_value) { 9 $this->hashValue = $hash_value; 10 return $this; 11 } 12 13 public function getHashValue() { 14 return $this->hashValue; 15 } 16 17 public function setHashType($hash_type) { 18 $this->hashType = $hash_type; 19 return $this; 20 } 21 22 public function getHashType() { 23 return $this->hashType; 24 } 25 26 public static function convertArrayToObjects(array $hashes) { 27 $hash_objects = array(); 28 foreach ($hashes as $hash) { 29 $type = $hash[0]; 30 $hash = $hash[1]; 31 $hash_objects[] = id(new DiffusionCommitHash()) 32 ->setHashType($type) 33 ->setHashValue($hash); 34 } 35 return $hash_objects; 36 } 37 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |