private function createGeneratorReturningKeys(array $keys) { foreach ($keys as $key) { (yield $key => 'value'); } }