for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chubbyphp\Serialization\Mapping;
use Psr\Container\ContainerInterface;
final class LazyNormalizationObjectMapping implements NormalizationObjectMappingInterface
{
/**
* @var ContainerInterface
*/
private $container;
* @var string
private $serviceId;
private $class;
* @param ContainerInterface $container
* @param string $serviceId
* @param string $class
public function __construct(ContainerInterface $container, $serviceId, string $class)
$this->container = $container;
$this->serviceId = $serviceId;
$this->class = $class;
}
* @return string
public function getClass(): string
return $this->class;
public function getNormalizationType(): string
return $this->container->get($this->serviceId)->getNormalizationType();
* @param string $path
*
* @return NormalizationFieldMappingInterface[]
public function getNormalizationFieldMappings(string $path): array
return $this->container->get($this->serviceId)->getNormalizationFieldMappings($path);
public function getNormalizationEmbeddedFieldMappings(string $path): array
return $this->container->get($this->serviceId)->getNormalizationEmbeddedFieldMappings($path);
* @return NormalizationLinkMappingInterface[]
public function getNormalizationLinkMappings(string $path): array
return $this->container->get($this->serviceId)->getNormalizationLinkMappings($path);