gabrielbull/php-waredesk-api

View on GitHub
src/Mappers/Product/Variant/AttributesMapper.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Waredesk\Mappers\Product\Variant;

use Waredesk\Collections\Products\Variants\Attributes;
use Waredesk\Mapper;
use Waredesk\Models\Product\Variant\Attribute;

class AttributesMapper extends Mapper
{
    public function map(Attributes $attributes, array $data): Attributes
    {
        return $this->replace($attributes, $data, Attribute::class, AttributeMapper::class);
    }
}