Exporter: better variable name

This commit is contained in:
Thomas Gelf 2022-08-03 08:54:15 +02:00
parent 5409558d3b
commit 74ea9adbf2
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ class Exporter
protected $fieldReferenceLoader;
protected $exportHostServices = false;
protected $fetchAllHostServices = false;
protected $resolveHostServices = false;
protected $showDefaults = false;
protected $showIds = false;
protected $resolveObjects = false;
@ -115,7 +115,7 @@ class Exporter
public function resolveHostServices($enable = true)
{
$this->fetchAllHostServices = $enable;
$this->resolveHostServices = $enable;
return $this;
}
@ -208,7 +208,7 @@ class Exporter
{
$table = (new ObjectsTableService($this->connection))->setHost($host);
$services = $this->fetchServicesForTable($table);
if ($this->fetchAllHostServices) {
if ($this->resolveHostServices) {
foreach ($this->fetchAllServicesForHost($host) as $service) {
$services[] = $service;
}