Skip to content

Commit e176e05

Browse files
committed
Git Database resources
1 parent c78afe6 commit e176e05

27 files changed

+468
-0
lines changed

src/Resource/Async/Git/Blob.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Async\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\Blob as BaseBlob;
6+
7+
class Blob extends BaseBlob
8+
{
9+
public function refresh(): Blob
10+
{
11+
throw new \Exception('TODO: create refresh method!');
12+
}
13+
}

src/Resource/Async/Git/EmptyBlob.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Async\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\EmptyBlob as BaseEmptyBlob;
6+
7+
class EmptyBlob extends BaseEmptyBlob
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Async\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\EmptyNamedBlog as BaseEmptyNamedBlog;
6+
7+
class EmptyNamedBlog extends BaseEmptyNamedBlog
8+
{
9+
}

src/Resource/Async/Git/EmptyTree.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Async\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\EmptyTree as BaseEmptyTree;
6+
7+
class EmptyTree extends BaseEmptyTree
8+
{
9+
}

src/Resource/Async/Git/NamedBlog.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Async\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\NamedBlog as BaseNamedBlog;
6+
7+
class NamedBlog extends BaseNamedBlog
8+
{
9+
public function refresh(): NamedBlog
10+
{
11+
throw new \Exception('TODO: create refresh method!');
12+
}
13+
}

src/Resource/Async/Git/Tree.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Async\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\Tree as BaseTree;
6+
7+
class Tree extends BaseTree
8+
{
9+
public function refresh(): Tree
10+
{
11+
throw new \Exception('TODO: create refresh method!');
12+
}
13+
}

src/Resource/Sync/Git/Blob.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Sync\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\Blob as BaseBlob;
6+
use ApiClients\Client\Github\Resource\Git\BlobInterface;
7+
use ApiClients\Foundation\Hydrator\CommandBus\Command\BuildAsyncFromSyncCommand;
8+
9+
class Blob extends BaseBlob
10+
{
11+
public function refresh(): Blob
12+
{
13+
return $this->wait($this->handleCommand(new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this))->then(function (BlobInterface $blob) {
14+
return $blob->refresh();
15+
}));
16+
}
17+
}

src/Resource/Sync/Git/EmptyBlob.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Sync\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\EmptyBlob as BaseEmptyBlob;
6+
7+
class EmptyBlob extends BaseEmptyBlob
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Sync\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\EmptyNamedBlog as BaseEmptyNamedBlog;
6+
7+
class EmptyNamedBlog extends BaseEmptyNamedBlog
8+
{
9+
}

src/Resource/Sync/Git/EmptyTree.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace ApiClients\Client\Github\Resource\Sync\Git;
4+
5+
use ApiClients\Client\Github\Resource\Git\EmptyTree as BaseEmptyTree;
6+
7+
class EmptyTree extends BaseEmptyTree
8+
{
9+
}

0 commit comments

Comments
 (0)