Mapping/DefaultNamingStrategy.php
public function propertyIriFragment($className, $propertyName)
    {
        $property = preg_replace_callback(
            '/_(.)/',
            function ($match) {
                return strtoupper($match[1]);
            },
            $propertyName
        );

        // Remove "get" and "set" prefixes
        if (0 === strncmp($property, 'get', 3) || 0 === strncmp($property, 'set', 3)) {
            $property = strtolower($property[3]) . substr($property, 4);

            // ... and the Iri suffix of such methods
            if ('Iri' === substr($property, -3)) {
                $property = substr($property, 0, -3);
            }
        }

        // The # is already included in the classIriFragment
        return $this->classIriFragment($className) . '/' . $property;
    }
public function propertyIriFragment($className, $propertyName)
    {
        $property = preg_replace_callback(
            '/_(.)/',
            function ($match) {
                return strtoupper($match[1]);
            },
            $propertyName
        );

        // Remove "get" and "set" prefixes
        if (0 === strncmp($property, 'get', 3) || 0 === strncmp($property, 'set', 3)) {
            $property = strtolower($property[3]) . substr($property, 4);

            // ... and the Iri suffix of such methods
            if ('Iri' === substr($property, -3)) {
                $property = substr($property, 0, -3);
            }
        }

        // The # is already included in the classIriFragment
        return $this->classIriFragment($className) . '/' . $property;
    }
public function propertyIriFragment ( $ className , $ propertyName ) { $ property = preg_replace_callback ( '/_(.)/' , function ( $ match ) { return strtoupper ( $ match [ 1 ] ) ; } , $ propertyName ) ; // Remove "get" and "set" prefixes if ( 0 === strncmp ( $ property , 'get' , 3 ) || 0 === strncmp ( $ property , 'set' , 3 ) ) { $ property = strtolower ( $ property [ 3 ] ) . substr ( $ property , 4 ) ; // ... and the Iri suffix of such methods if ( 'Iri' === substr ( $ property , - 3 ) ) { $ property = substr ( $ property , 0 , - 3 ) ; } } // The # is already included in the classIriFragment return $ this -> classIriFragment ( $ className ) . '/' . $ property ; }
{@inheritdoc}
{