# tasks/system/condition/ContainsCondition.php

Is one string part of another string?

Author
  Hans Lellelid (Phing)
Author
  Stefan Bodewig (Ant)
Package
  phing.tasks.system.condition
Version
  $Revision: 526 $

## \ContainsCondition
jump to top

Package: phing\tasks\system\condition

Is one string part of another string?

Implements
  \Condition
Author
  Hans Lellelid (Phing)
Author
  Stefan Bodewig (Ant)
Version
  $Revision: 526 $

### Properties

`$caseSensitive= 'true'`
Default value `true` Details

Type

`$string= ''`
Details

Type

`$subString= ''`
Details

Type

### Methods

`evaluate( ) : boolean`

Check whether string contains substring.

Returns

Type | Description
--- | ---
boolean |

Throws

Exception | Description
--- | ---
\BuildException |

`setCaseSensitive( $b ) : void`

Whether to search ignoring case or not.

Parameters

Name | Type | Description
--- | --- | ---
$b |  |

`setString( string $a1 ) : void`

The string to search in.

Parameters

Name | Type | Description
--- | --- | ---
$a1 | string |

`setSubstring( string $a2 ) : void`

The string to search for.

Parameters

Name | Type | Description
--- | --- | ---
$a2 | string |

Documentation was generated by DocBlox 0.15.1.