forked from deblan/csv-validator
Renaming of method
This commit is contained in:
parent
e88a23bb1d
commit
0ee2884b3d
|
@ -39,7 +39,7 @@ $validator->addFieldConstraint(0, new Email());
|
|||
$validator->addFieldConstraint(1, new Date());
|
||||
|
||||
// Validate the legend
|
||||
$validator->setExceptedLegend(array('foo', 'bar', 'bim'));
|
||||
$validator->setExpectedLegend(array('foo', 'bar', 'bim'));
|
||||
|
||||
// An line must contain 3 columns
|
||||
$validator->addDataConstraint(new Callback(function($data, ExecutionContextInterface $context) {
|
||||
|
|
|
@ -20,7 +20,7 @@ $validator->addFieldConstraint(0, new Email());
|
|||
$validator->addFieldConstraint(1, new Date());
|
||||
|
||||
// Validate the legend
|
||||
$validator->setExceptedLegend(array('foo', 'bar', 'bim'));
|
||||
$validator->setExpectedLegend(array('foo', 'bar', 'bim'));
|
||||
|
||||
// An line must contain 3 columns
|
||||
$validator->addDataConstraint(new Callback(function($data, ExecutionContextInterface $context) {
|
||||
|
|
|
@ -98,12 +98,12 @@ class Validator
|
|||
}
|
||||
|
||||
/**
|
||||
* Set the excepted legend
|
||||
* Set the expected legend
|
||||
*
|
||||
* @param array $legend Expected legend
|
||||
* @return Validator
|
||||
*/
|
||||
public function setExceptedLegend(array $legend)
|
||||
public function setExpectedLegend(array $legend)
|
||||
{
|
||||
$this->expectedLegend = $legend;
|
||||
|
||||
|
|
Loading…
Reference in a new issue