for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace CCT\Component\Rest\Transformer\Response;
use CCT\Component\Rest\Serializer\ContextInterface;
use CCT\Component\Rest\Serializer\SerializerInterface;
abstract class AbstractSerializerResponseTransformer implements ResponseTransformerInterface
{
/**
* @var SerializerInterface
*/
protected $serializer;
* @var string
protected $class;
* @var ContextInterface|null
protected $context;
public function __construct(SerializerInterface $serializer, string $class, ContextInterface $context = null)
$this->serializer = $serializer;
$this->class = $class;
$this->context = $context;
}