src/Evaluators/HighHandEvaluator.php
/**
    * Returns the number of significant cards in a certain hand type
    * e.g. With three of a kind, the first three cards
    * e.g. With two pair, the first four cards
    * e.g. With a straight, all cards
    * 
    * @param integer $handRank
    * @return int
    */
Returns the number of significant cards in a certain hand type
e.g. With three of a kind, the first three cards
e.g. With two pair, the first four cards
e.g. With a straight, all cards

@param integer $handRank
@return int
Returns the number of significant cards in a certain hand type e . g . With three of a kind the first three cards e . g . With two pair the first four cards e . g . With a straight all cards @param integer $handRank @return int
public static function numberOfSignificantCards(int $handRank): Int
    {
        switch($handRank) {
            case static::HIGH_CARD_RANK:
                return 1;
            case static::ONE_PAIR_RANK:
                return 2;
            case static::TWO_PAIR_RANK:
                return 4;
            case static::THREE_OF_A_KIND_RANK:
                return 3;
            case static::FLUSH_RANK:
                return 1;
            case static::FOUR_OF_A_KIND_RANK:
                return 4;
            default:
                return 5;
        }
    }
public static function numberOfSignificantCards ( int $ handRank ) : Int { switch ( $ handRank ) { case static :: HIGH_CARD_RANK : return 1 ; case static :: ONE_PAIR_RANK : return 2 ; case static :: TWO_PAIR_RANK : return 4 ; case static :: THREE_OF_A_KIND_RANK : return 3 ; case static :: FLUSH_RANK : return 1 ; case static :: FOUR_OF_A_KIND_RANK : return 4 ; default : return 5 ; } }
Returns the number of significant cards in a certain hand type
 e.g.
Returns the number of significant cards in a certain hand type e . g .
// These are the types of hands that could have kickers // Straights, Full Houses and Straight Flushes, all cards are significant