<?php

class InventoryConditionExport extends BaseComplianceExport
{
    public function export()
    {
       return array_reduce($this->rule->inventoryConditions['filters'], function ($reducer, $value) {
           $reducer[] = ['attribute' => $value['label'], 'operator' => $value['condition'], 'value' => $value['value']];
           return $reducer;
       }, []);
    }
}
