lib/3rdParty/composer/symfony/serializer/Context/Normalizer/PropertyNormalizerContextBuilder.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Symfony\Component\Serializer\Context\Normalizer; |
| 13 | |
| 14 | use Symfony\Component\Serializer\Normalizer\PropertyNormalizer; |
| 15 | |
| 16 | /** |
| 17 | * A helper providing autocompletion for available PropertyNormalizer options. |
| 18 | * |
| 19 | * @author Mathias Arlaud <[email protected]> |
| 20 | */ |
| 21 | final class PropertyNormalizerContextBuilder extends AbstractObjectNormalizerContextBuilder |
| 22 | { |
| 23 | /** |
| 24 | * Configures whether fields should be output based on visibility. |
| 25 | */ |
| 26 | public function withNormalizeVisibility(int $normalizeVisibility): static |
| 27 | { |
| 28 | return $this->with(PropertyNormalizer::NORMALIZE_VISIBILITY, $normalizeVisibility); |
| 29 | } |
| 30 | } |