lib/Persistence/Doctrine/Mapper/LayoutResolverMapper.php
public function mapRules(array $data): array
    {
        $rules = [];

        foreach ($data as $dataItem) {
            $rules[] = Rule::fromArray(
                [
                    'id' => (int) $dataItem['id'],
                    'status' => (int) $dataItem['status'],
                    'layoutId' => $dataItem['layout_id'] !== null ? (int) $dataItem['layout_id'] : null,
                    'enabled' => (bool) $dataItem['enabled'],
                    'priority' => (int) $dataItem['priority'],
                    'comment' => $dataItem['comment'],
                ]
            );
        }

        return $rules;
    }
public function mapRules(array $data): array
    {
        $rules = [];

        foreach ($data as $dataItem) {
            $rules[] = Rule::fromArray(
                [
                    'id' => (int) $dataItem['id'],
                    'status' => (int) $dataItem['status'],
                    'layoutId' => $dataItem['layout_id'] !== null ? (int) $dataItem['layout_id'] : null,
                    'enabled' => (bool) $dataItem['enabled'],
                    'priority' => (int) $dataItem['priority'],
                    'comment' => $dataItem['comment'],
                ]
            );
        }

        return $rules;
    }
public function mapRules ( array $ data ) : array { $ rules = [ ] ; foreach ( $ data as $ dataItem ) { $ rules [ ] = Rule :: fromArray ( [ 'id' => ( int ) $ dataItem [ 'id' ] , 'status' => ( int ) $ dataItem [ 'status' ] , 'layoutId' => $ dataItem [ 'layout_id' ] !== null ? ( int ) $ dataItem [ 'layout_id' ] : null , 'enabled' => ( bool ) $ dataItem [ 'enabled' ] , 'priority' => ( int ) $ dataItem [ 'priority' ] , 'comment' => $ dataItem [ 'comment' ] , ] ) ; } return $ rules ; }
Maps data from database to rule values.

@return \Netgen\BlockManager\Persistence\Values\LayoutResolver\Rule[]
Maps data from database to rule values .