forked from deblan/csv-validator
expectedLegend attribute
This commit is contained in:
parent
36938bba66
commit
7949bb5580
|
@ -44,6 +44,11 @@ class Validator
|
||||||
*/
|
*/
|
||||||
protected $errors = [];
|
protected $errors = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $expectedLegend = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
@ -125,7 +130,7 @@ class Validator
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null === $this->expectedLegend) {
|
if (empty($this->expectedLegend)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue