diff --git a/README.md b/README.md index 381aac3..fa1e271 100644 --- a/README.md +++ b/README.md @@ -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) { diff --git a/example.php b/example.php index 05c5aff..48250f6 100644 --- a/example.php +++ b/example.php @@ -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) { diff --git a/src/Deblan/CsvValidator/Validator.php b/src/Deblan/CsvValidator/Validator.php index 3d0c083..98702cc 100644 --- a/src/Deblan/CsvValidator/Validator.php +++ b/src/Deblan/CsvValidator/Validator.php @@ -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;