Tobscure\JsonApi\AbstractSerializer::getRelationshipMethodName PHP Method

getRelationshipMethodName() private method

kebab-case is converted into camelCase.
private getRelationshipMethodName ( string $name ) : string
$name string
return string
    private function getRelationshipMethodName($name)
    {
        if (stripos($name, '-')) {
            $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name))));
        }
        return $name;
    }