src/Evaluators/HighHandEvaluator.php
/**
    * Set Hand properties to be the One Pair
    * 
    * @return void
    */
Set Hand properties to be the One Pair

@return void
Set Hand properties to be the One Pair @return void
protected function onePair(): void
    {
        $this->hand = array_merge(
            array_slice(reset($this->valueHistogram), 0, 2),
            array_slice(next($this->valueHistogram), 0, 1),
            array_slice(next($this->valueHistogram), 0, 1),
            array_slice(next($this->valueHistogram), 0, 1)
            );
        $this->handRank = static::ONE_PAIR_RANK;
    }
protected function onePair ( ) : void { $ this -> hand = array_merge ( array_slice ( reset ( $ this -> valueHistogram ) , 0 , 2 ) , array_slice ( next ( $ this -> valueHistogram ) , 0 , 1 ) , array_slice ( next ( $ this -> valueHistogram ) , 0 , 1 ) , array_slice ( next ( $ this -> valueHistogram ) , 0 , 1 ) ) ; $ this -> handRank = static :: ONE_PAIR_RANK ; }
Set Hand properties to be the One Pair
Set Hand properties to be the One Pair