src/Evaluators/HighHandEvaluator.php
/**
    * Returns if the hand ranking is a Royal flush
    * First check if a flush exists, and the top five flush cards equal a Royal flush
    * Cards in each suitHistogram are already sorted high to low
    * 
    * @return bool
    */
Returns if the hand ranking is a Royal flush
First check if a flush exists, and the top five flush cards equal a Royal flush
Cards in each suitHistogram are already sorted high to low

@return bool
Returns if the hand ranking is a Royal flush First check if a flush exists and the top five flush cards equal a Royal flush Cards in each suitHistogram are already sorted high to low @return bool
public function isRoyalFlush(): Bool
    {
        if ($this->isFlush()) {
            $flushCardValues = array_map(fn($card) => (int) $card->getValueRank(), reset($this->suitHistogram));
            $fiveCards = array_slice($flushCardValues, 0, 5);
            return $fiveCards === [14, 13, 12, 11, 10];
        }
        return false;
    }
public function isRoyalFlush ( ) : Bool { if ( $ this -> isFlush ( ) ) { $ flushCardValues = array_map ( fn ( $ card ) => ( int ) $ card -> getValueRank ( ) , reset ( $ this -> suitHistogram ) ) ; $ fiveCards = array_slice ( $ flushCardValues , 0 , 5 ) ; return $ fiveCards === [ 14 , 13 , 12 , 11 , 10 ] ; } return false ; }
Returns if the hand ranking is a Royal flush
 First check if a flush exists, and the top five flush cards equal a Royal flush
 Cards in each suitHistogram are already sorted high to low
Returns if the hand ranking is a Royal flush First check if a flush exists and the top five flush cards equal a Royal flush Cards in each suitHistogram are already sorted high to low