src/AbstractSerializer.php
private function getRelationshipMethodName($name)
    {
        if (stripos($name, '-')) {
            $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name))));
        }

        if (stripos($name, '_')) {
            $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name))));
        }

        return $name;
    }
private function getRelationshipMethodName($name)
    {
        if (stripos($name, '-')) {
            $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name))));
        }

        if (stripos($name, '_')) {
            $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name))));
        }

        return $name;
    }
private function getRelationshipMethodName ( $ name ) { if ( stripos ( $ name , '-' ) ) { $ name = lcfirst ( implode ( '' , array_map ( 'ucfirst' , explode ( '-' , $ name ) ) ) ) ; } if ( stripos ( $ name , '_' ) ) { $ name = lcfirst ( implode ( '' , array_map ( 'ucfirst' , explode ( '_' , $ name ) ) ) ) ; } return $ name ; }
Get the serializer method name for the given relationship.

snake_case and kebab-case are converted into camelCase.

@param string $name

@return string
Get the serializer method name for the given relationship .