protected function getData()
{
if ($this->dataFile === false || $this->dataFile === null) {
return [];
}
$dataFile = Yii::getAlias($this->dataFile);
if (is_file($dataFile)) {
return require $dataFile;
} else {
throw new InvalidConfigException("Fixture data file does not exist: {$this->dataFile}");
}
}