ApiPlatformBundle/Metadata/Property/Factory/FamilyPropertyMetadataFactory.php
public function create(string $resourceClass, string $property, array $options = []): PropertyMetadata
    {
        $propertyMetadata = $this->propertyMetadata->create($resourceClass, $property, $options);

        if ('code' === $property && is_a($resourceClass, FamilyInterface::class, true)) {
            return $propertyMetadata->withIdentifier(true);
        }

        return $propertyMetadata;
    }
public function create(string $resourceClass, string $property, array $options = []): PropertyMetadata
    {
        $propertyMetadata = $this->propertyMetadata->create($resourceClass, $property, $options);

        if ('code' === $property && is_a($resourceClass, FamilyInterface::class, true)) {
            return $propertyMetadata->withIdentifier(true);
        }

        return $propertyMetadata;
    }
public function create ( string $ resourceClass , string $ property , array $ options = [ ] ) : PropertyMetadata { $ propertyMetadata = $ this -> propertyMetadata -> create ( $ resourceClass , $ property , $ options ) ; if ( 'code' === $ property && is_a ( $ resourceClass , FamilyInterface :: class , true ) ) { return $ propertyMetadata -> withIdentifier ( true ) ; } return $ propertyMetadata ; }
Creates a property metadata.

@param string $resourceClass
@param string $property
@param array  $options

@throws PropertyNotFoundException

@return PropertyMetadata
Creates a property metadata .