/**
  * @dataProvider validateValueProvider
  */
 public function testValidateValue($type, $flags, $value, $success)
 {
     $param = new Param('foo', 'bar');
     $param->setType($type);
     $param->setFlags($flags);
     $this->assertEquals($success, $param->validateValue($value));
 }
 /**
  * @param DefinitionParameter $parameter
  * @return self
  */
 public function addParameter(DefinitionParameter $parameter)
 {
     $this->parameters[$parameter->getName()] = $parameter;
     return $this;
 }