Method | Description | |
---|---|---|
__construct ( string $key ) | ||
count ( ) | ||
getIterator ( ) | ||
getKey ( ) : string | ||
mergeWith ( self $flags, boolean $override = true ) : self | Creates a new instance with the two bags merged together. | |
withFlag ( Nelmio\Alice\Definition\FlagInterface $flag ) : self | Creates a new instance of the bag with the given flag. If a flag with the same identifier already exists, the existing value will be replaced. | |
withKey ( string $key ) : self |
public __construct ( string $key ) | ||
$key | string | String elements from which the flags come from stripped from its flags. |
public withFlag ( Nelmio\Alice\Definition\FlagInterface $flag ) : self | ||
$flag | Nelmio\Alice\Definition\FlagInterface | |
return | self |