Renaming of method

This commit is contained in:
Simon Vieille 2016-05-30 12:02:49 +02:00
parent e88a23bb1d
commit 0ee2884b3d
3 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ $validator->addFieldConstraint(0, new Email());
$validator->addFieldConstraint(1, new Date()); $validator->addFieldConstraint(1, new Date());
// Validate the legend // Validate the legend
$validator->setExceptedLegend(array('foo', 'bar', 'bim')); $validator->setExpectedLegend(array('foo', 'bar', 'bim'));
// An line must contain 3 columns // An line must contain 3 columns
$validator->addDataConstraint(new Callback(function($data, ExecutionContextInterface $context) { $validator->addDataConstraint(new Callback(function($data, ExecutionContextInterface $context) {

View file

@ -20,7 +20,7 @@ $validator->addFieldConstraint(0, new Email());
$validator->addFieldConstraint(1, new Date()); $validator->addFieldConstraint(1, new Date());
// Validate the legend // Validate the legend
$validator->setExceptedLegend(array('foo', 'bar', 'bim')); $validator->setExpectedLegend(array('foo', 'bar', 'bim'));
// An line must contain 3 columns // An line must contain 3 columns
$validator->addDataConstraint(new Callback(function($data, ExecutionContextInterface $context) { $validator->addDataConstraint(new Callback(function($data, ExecutionContextInterface $context) {

View file

@ -98,12 +98,12 @@ class Validator
} }
/** /**
* Set the excepted legend * Set the expected legend
* *
* @param array $legend Expected legend * @param array $legend Expected legend
* @return Validator * @return Validator
*/ */
public function setExceptedLegend(array $legend) public function setExpectedLegend(array $legend)
{ {
$this->expectedLegend = $legend; $this->expectedLegend = $legend;