for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chubbyphp\Deserialization\Denormalizer;
final class DenormalizerContext implements DenormalizerContextInterface
{
/**
* @var bool
*/
private $allowedAdditionalFields = false;
* @var string[]
private $groups = [];
* @param bool $allowedAdditionalFields
*
* @return self
public function setAllowedAdditionalFields(bool $allowedAdditionalFields): self
$this->allowedAdditionalFields = $allowedAdditionalFields;
return $this;
}
* @return bool
public function isAllowedAdditionalFields(): bool
return $this->allowedAdditionalFields;
* @param string[] $groups
public function setGroups(array $groups): self
$this->groups = $groups;
* @return string[]
public function getGroups(): array
return $this->groups;