protected function replaceScope(string &$stub, string $scope)
    {

        if (strlen($scope) > 0)
            $stub = str_replace("'public'", "'$scope'", $stub);

        return $this;
    }
protected function replaceScope(string &$stub, string $scope)
    {

        if (strlen($scope) > 0)
            $stub = str_replace("'public'", "'$scope'", $stub);

        return $this;
    }
protected function replaceScope ( string & $ stub , string $ scope ) { if ( strlen ( $ scope ) > 0 ) $ stub = str_replace ( "'public'" , "'$scope'" , $ stub ) ; return $ this ; }
Replace the scope for the given stub.

@param string $stub
@param string $scope

@return $this
Replace the scope for the given stub .