mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	More types
This commit is contained in:
		@@ -7,8 +7,14 @@ namespace DNW\Skills;
 | 
			
		||||
 */
 | 
			
		||||
class HashMap
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * @var mixed[] $hashToValue
 | 
			
		||||
     */
 | 
			
		||||
    private array $hashToValue = [];
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @var mixed[] $hashToKey
 | 
			
		||||
     */
 | 
			
		||||
    private array $hashToKey = [];
 | 
			
		||||
 | 
			
		||||
    public function getValue(string|object $key): mixed
 | 
			
		||||
@@ -27,11 +33,17 @@ class HashMap
 | 
			
		||||
        return $this;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return mixed[]
 | 
			
		||||
     */
 | 
			
		||||
    public function getAllKeys(): array
 | 
			
		||||
    {
 | 
			
		||||
        return array_values($this->hashToKey);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return mixed[]
 | 
			
		||||
     */
 | 
			
		||||
    public function getAllValues(): array
 | 
			
		||||
    {
 | 
			
		||||
        return array_values($this->hashToValue);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user