# types/selectors/SelectorContainer.php

This is the interface for selectors that can contain other selectors.

Author
  Bruce Atherton
Package
  phing.types.selectors

## \SelectorContainer
jump to top

Package: phing\types\selectors

This is the interface for selectors that can contain other selectors.

Author
  Bruce Atherton

### Methods

`appendSelector( \selector $selector ) : \the`

Add 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

`createAnd( ) : void`

add an "And" selector entry on the selector list

`createContains( ) : void`

add a contains selector entry on the selector list

`createCustom( ) : void`

add an extended selector entry on the selector list

`createDate( ) : void`

add a selector date entry on the selector list

`createDepend( ) : void`

add a depends selector entry on the selector list

`createDepth( ) : void`

add a depth selector entry on the selector list

`createFilename( ) : void`

add a selector filename entry on the selector list

`createMajority( ) : void`

add a majority selector entry on the selector list

`createNone( ) : void`

add a "None" selector entry on the selector list

`createNot( ) : void`

add a "Not" selector entry on the selector list

`createOr( ) : void`

add an "Or" selector entry on the selector list

`createPresent( ) : void`

add a present selector entry on the selector list

`createSelector( ) : void`

add a "Select" selector entry on the selector list

`createSize( ) : void`

add a selector size entry on the selector list

`getSelectors( $p ) : \an`

Returns a *copy* of the set of selectors as an array.

Parameters

Name | Type | Description
--- | --- | ---
$p |  |

Returns

Type | Description
--- | ---
\an | array of selectors in this container

`hasSelectors( ) : \whether`

Indicates whether there are any selectors here.

Returns

Type | Description
--- | ---
\whether | any selectors are in this container

`selectorCount( ) : \the`

Gives the count of the number of selectors in this container

Returns

Type | Description
--- | ---
\the | number of selectors in this container

`selectorElements( ) : \an`

Returns an array for accessing the set of selectors.

Returns

Type | Description
--- | ---
\an | enumerator that goes through each of the selectors

Documentation was generated by DocBlox 0.15.1.