types/selectors/SelectorContainer.php
This is the interface for selectors that can contain other selectors.
- Author
- Bruce Atherton
- Package
- phing.types.selectors
Package: phing\types\selectorsThis is the interface for selectors that can contain other selectors.
- Author
- Bruce Atherton
Methods



appendSelector(
\selector $selector
)
:
\theAdd a new selector into this container.
Parameters
| Name |
Type |
Description |
| $selector |
\selector |
the new selector to add |
Returns
| Type |
Description |
| \the |
selector that was added |



getSelectors(
$p
)
:
\anReturns a *copy* of the set of selectors as an array.
Parameters
Returns
| Type |
Description |
| \an |
array of selectors in this container |



hasSelectors(
)
:
\whetherIndicates whether there are any selectors here.
Returns
| Type |
Description |
| \whether |
any selectors are in this container |



selectorCount(
)
:
\theGives the count of the number of selectors in this container
Returns
| Type |
Description |
| \the |
number of selectors in this container |



selectorElements(
)
:
\anReturns an array for accessing the set of selectors.
Returns
| Type |
Description |
| \an |
enumerator that goes through each of the selectors |