gabrielbull/php-waredesk-api

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Waredesk\Mappers\Product\Variant;

use Waredesk\Collections\Products\Variants\Codes;
use Waredesk\Mapper;
use Waredesk\Models\Product\Variant\Code;

class CodesMapper extends Mapper
{
    public function map(Codes $codes, array $data): Codes
    {
        return $this->create($codes, $data, Code::class, CodeMapper::class);
    }
}