REBELinBLUE\Deployer\Validators\ChannelValidator::validate PHP Method

validate() public method

Validate the the channel name is valid for slack, i.e. starts with # or @.
public validate ( string $attribute, string $value, array $parameters ) : boolean
$attribute string
$value string
$parameters array
return boolean
    public function validate($attribute, $value, $parameters)
    {
        $first_character = substr($value, 0, 1);
        return ($first_character === '#' || $first_character === '@') && strlen($value) > 1;
    }
ChannelValidator