protected function getPopulateData()
{
// Criteria.
$criteria = $this->getCriteria();
// Model
$model = $this->pluralizeModel();
// Criteria namespace.
$criteria_namespace = Config::get('repositories.criteria_namespace');
// Criteria class.
$criteria_class = $criteria;
// Check if the model isset and not empty.
if (isset($model) && !empty($model)) {
// Update the criteria namespace with the model folder.
$criteria_namespace .= '\\' . $model;
}
// Populate data.
$populate_data = ['criteria_namespace' => $criteria_namespace, 'criteria_class' => $criteria_class];
// Return the populate data.
return $populate_data;
}