src/Evaluators/HighHandEvaluator.php
/**
    * Returns if the hand ranking is a straight flush
    * First check if a flush exists
    * If so, send through card values of given flush to findStraight
    * Cards in each suitHistogram are already sorted high to low
    * 
    * @return bool
    */
Returns if the hand ranking is a straight flush
First check if a flush exists
If so, send through card values of given flush to findStraight
Cards in each suitHistogram are already sorted high to low

@return bool
Returns if the hand ranking is a straight flush First check if a flush exists If so send through card values of given flush to findStraight Cards in each suitHistogram are already sorted high to low @return bool
public function isStraightFlush(): Bool
    {
        if ($this->isFlush()) {
            $flushCardValues = array_map(fn($card) => (int) $card->getValueRank(), reset($this->suitHistogram));
            return $this->findStraight($flushCardValues);
        }
        return false;
    }
public function isStraightFlush ( ) : Bool { if ( $ this -> isFlush ( ) ) { $ flushCardValues = array_map ( fn ( $ card ) => ( int ) $ card -> getValueRank ( ) , reset ( $ this -> suitHistogram ) ) ; return $ this -> findStraight ( $ flushCardValues ) ; } return false ; }
Returns if the hand ranking is a straight flush
 First check if a flush exists
 If so, send through card values of given flush to findStraight
 Cards in each suitHistogram are already sorted high to low
Returns if the hand ranking is a straight flush First check if a flush exists If so send through card values of given flush to findStraight Cards in each suitHistogram are already sorted high to low