Skip to content

Commit 048a684

Browse files
Replace repo usernames with workspaces (#42)
1 parent 4f31d90 commit 048a684

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+669
-669
lines changed

src/Api/Repositories.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace Bitbucket\Api;
1515

16-
use Bitbucket\Api\Repositories\Users as RepositoriesUsers;
16+
use Bitbucket\Api\Repositories\Workspaces as RepositoriesWorkspaces;
1717

1818
/**
1919
* The repositories api class.
@@ -37,13 +37,13 @@ public function list(array $params = [])
3737
}
3838

3939
/**
40-
* @param string $username
40+
* @param string $workspace
4141
*
42-
* @return \Bitbucket\Api\Repositories\Users
42+
* @return \Bitbucket\Api\Repositories\Workspaces
4343
*/
44-
public function users(string $username)
44+
public function workspaces(string $workspace)
4545
{
46-
return new RepositoriesUsers($this->getHttpClient(), $username);
46+
return new RepositoriesWorkspaces($this->getHttpClient(), $workspace);
4747
}
4848

4949
/**

src/Api/Repositories/AbstractRepositoriesApi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424
abstract class AbstractRepositoriesApi extends AbstractApi
2525
{
2626
/**
27-
* The username.
27+
* The workspace.
2828
*
2929
* @var string
3030
*/
31-
protected $username;
31+
protected $workspace;
3232

3333
/**
3434
* Create a new api instance.
3535
*
3636
* @param \Http\Client\Common\HttpMethodsClientInterface $client
37-
* @param string $username
37+
* @param string $workspace
3838
*/
39-
public function __construct(HttpMethodsClientInterface $client, string $username)
39+
public function __construct(HttpMethodsClientInterface $client, string $workspace)
4040
{
4141
parent::__construct($client);
42-
$this->username = $username;
42+
$this->workspace = $workspace;
4343
}
4444
}

0 commit comments

Comments
 (0)