final public static function memberByPredicate($predicate)
    {
        $member = static::memberByPredicateWithDefault($predicate);

        if (null === $member) {
            throw static::createUndefinedMemberException(
                get_called_class(),
                '<callback>',
                '<callback>'
            );
        }

        return $member;
    }
final public static function memberByPredicate($predicate)
    {
        $member = static::memberByPredicateWithDefault($predicate);

        if (null === $member) {
            throw static::createUndefinedMemberException(
                get_called_class(),
                '<callback>',
                '<callback>'
            );
        }

        return $member;
    }
final public static function memberByPredicate ( $ predicate ) { $ member = static :: memberByPredicateWithDefault ( $ predicate ) ; if ( null === $ member ) { throw static :: createUndefinedMemberException ( get_called_class ( ) , '<callback>' , '<callback>' ) ; } return $ member ; }
Returns a single member by predicate callback.

@api

@param callable $predicate The predicate applies to the member to find a match.

@return static                            The first member for which $predicate($member) evaluates to boolean true.
@throws UndefinedMemberExceptionInterface If no associated member is found.
Returns a single member by predicate callback .