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 Chubbyphp\Serialization\Normalizer\LinkNormalizerInterface;
final class NormalizationLinkMapping implements NormalizationLinkMappingInterface
{
/**
* @var string
*/
private $name;
* @var array
private $groups;
* @var LinkNormalizerInterface
private $linkNormalizer;
* @param string $name
* @param array $groups
* @param LinkNormalizerInterface $linkNormalizer
public function __construct(
string $name,
array $groups,
LinkNormalizerInterface $linkNormalizer
) {
$this->name = $name;
$this->groups = $groups;
$this->linkNormalizer = $linkNormalizer;
}
* @return string
public function getName(): string
return $this->name;
* @return string[]
public function getGroups(): array
return $this->groups;
* @return LinkNormalizerInterface
public function getLinkNormalizer(): LinkNormalizerInterface
return $this->linkNormalizer;