public function getDashedName(): string
    {
        $dashedName = ucfirst($this->name);
        $dashedName = preg_replace('/([A-Z][a-z0-9]+)/', '$1-', $dashedName);
        return '--' . strtolower(substr($dashedName, 0, -1));
    }
public function getDashedName(): string
    {
        $dashedName = ucfirst($this->name);
        $dashedName = preg_replace('/([A-Z][a-z0-9]+)/', '$1-', $dashedName);
        return '--' . strtolower(substr($dashedName, 0, -1));
    }
public function getDashedName ( ) : string { $ dashedName = ucfirst ( $ this -> name ) ; $ dashedName = preg_replace ( '/([A-Z][a-z0-9]+)/' , '$1-' , $ dashedName ) ; return '--' . strtolower ( substr ( $ dashedName , 0 , - 1 ) ) ; }
Returns the lowercased name with dashes as word separator

@return string
Returns the lowercased name with dashes as word separator