1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Naming; 6 7use JMS\Serializer\Metadata\PropertyMetadata; 8 9/** 10 * Interface for property naming strategies. 11 * 12 * Implementations translate the property name to a serialized name that is 13 * displayed. 14 * 15 * @author Johannes M. Schmitt <schmittjoh@gmail.com> 16 */ 17interface PropertyNamingStrategyInterface 18{ 19 /** 20 * Translates the name of the property to the serialized version. 21 */ 22 public function translateName(PropertyMetadata $property): string; 23} 24