PHP Class DataSift\Storyplayer\DefinitionLib\TestEnvironment_HostIdValidator

Datei anzeigen Open project: datasift/storyplayer Class Usage Examples

Protected Properties

Property Type Description
$group TestEnvironment_GroupDefinition the group that we are validating host IDs for

Public Methods

Method Description
__construct ( TestEnvironment_GroupDefinition $group ) constructor
validate ( mixed $hostId ) : void make sure that we're happy with a hostId

Protected Methods

Method Description
validateMustBeString ( mixed $hostId ) : void make sure that the hostId is a string

Method Details

__construct() public method

constructor
public __construct ( TestEnvironment_GroupDefinition $group )
$group TestEnvironment_GroupDefinition the group that we are validating host IDs for

validate() public method

make sure that we're happy with a hostId
public validate ( mixed $hostId ) : void
$hostId mixed the hostId to check
return void

validateMustBeString() protected method

make sure that the hostId is a string
protected validateMustBeString ( mixed $hostId ) : void
$hostId mixed the hostId to check
return void

Property Details

$group protected_oe property

the group that we are validating host IDs for
protected TestEnvironment_GroupDefinition,DataSift\Storyplayer\DefinitionLib $group
return TestEnvironment_GroupDefinition