PHP Class DataSift\Storyplayer\DefinitionLib\TestEnvironment_RolesValidator

Afficher le fichier Open project: datasift/storyplayer Class Usage Examples

Protected Properties

Свойство Type Description
$host TestEnvironment_HostDefinition the host we are checking out roles for

Méthodes publiques

Méthode Description
__construct ( TestEnvironment_HostDefinition $host ) constructor
validate ( mixed $roles ) : void validate a set of roles

Méthodes protégées

Méthode Description
validateMustBeArray ( mixed $roles ) : void make sure that the roles are an array
validateMustBeKeyValuePairs ( array $roles ) : void make sure that the roles are simple key / value pairs

Method Details

__construct() public méthode

constructor
public __construct ( TestEnvironment_HostDefinition $host )
$host TestEnvironment_HostDefinition the host that we are validating roles for

validate() public méthode

throws an exception if there's anything wrong with the roles
public validate ( mixed $roles ) : void
$roles mixed the roles to validate
Résultat void

validateMustBeArray() protected méthode

make sure that the roles are an array
protected validateMustBeArray ( mixed $roles ) : void
$roles mixed the roles to check
Résultat void

validateMustBeKeyValuePairs() protected méthode

make sure that the roles are simple key / value pairs
protected validateMustBeKeyValuePairs ( array $roles ) : void
$roles array the roles to check
Résultat void

Property Details

$host protected_oe property

the host we are checking out roles for
protected TestEnvironment_HostDefinition,DataSift\Storyplayer\DefinitionLib $host
Résultat TestEnvironment_HostDefinition