<?php

namespace Modules\Stock\Helper;

class SwitchDataHelper
{
    /**
     * @param array<string,mixed> $entity
     * @param array<int,string> $properties
     * @return void
     */
    public static function initEmptySwitch(array &$entity, array $properties): void
    {
        foreach ($properties as $property) {
            if (!array_key_exists($property, $entity)) {
                $entity[$property] = 'OFF';
            }
        }
    }
}
