rows as $row) { if (!$row[$cellName->value]) { continue; } $result[$row['sys_name']] = $row['name']; } return $result; } /** * Создаёт и заполняет массивы bonusNames и sysBonusNames. * @return void */ public function getBonus(): void { $this->bonusNames = $this->filterByCell(StatFilterCellName::Bonus); $this->sysBonusNames = array_keys($this->bonusNames); } /** * Создаёт и заполняет массивы requirementNames и sysRequirementNames. * @return void */ public function getRequirement(): void { $this->requirementNames = $this->filterByCell(StatFilterCellName::Requirement); $this->sysRequirementNames = array_keys($this->requirementNames); } }