ClaimantPredicatesResponse
extends IteratorIterator
in package
Iterable collection of claimant predicate responses
Provides iterator functionality for traversing multiple ClaimantPredicateResponse objects. Used for logical combinations like AND and OR predicates.
Tags
Table of Contents
Methods
- __construct() : mixed
- Constructs a claimant predicates collection
- add() : void
- Adds a predicate to the collection
- count() : int
- Gets the total number of predicates in the collection
- current() : ClaimantPredicateResponse
- Gets the current predicate in the iteration
- toArray() : array<string|int, ClaimantPredicateResponse>
- Converts the collection to an array
Methods
__construct()
Constructs a claimant predicates collection
public
__construct(ClaimantPredicateResponse ...$predicates) : mixed
Parameters
- $predicates : ClaimantPredicateResponse
-
Variable number of predicate responses
add()
Adds a predicate to the collection
public
add(ClaimantPredicateResponse $predicates) : void
Parameters
- $predicates : ClaimantPredicateResponse
-
The predicate to add
count()
Gets the total number of predicates in the collection
public
count() : int
Return values
int —The count of predicates
current()
Gets the current predicate in the iteration
public
current() : ClaimantPredicateResponse
Return values
ClaimantPredicateResponse —The current predicate
toArray()
Converts the collection to an array
public
toArray() : array<string|int, ClaimantPredicateResponse>
Return values
array<string|int, ClaimantPredicateResponse> —Array of predicate responses