21 lines
483 B
PHP
21 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Actions\Git\Data;
|
|
|
|
/**
|
|
* Provider-agnostic representation of a repository visible to a user connection.
|
|
*/
|
|
final readonly class GitRepository
|
|
{
|
|
public function __construct(
|
|
public string $baseUrl,
|
|
public string $providerRepositoryId,
|
|
public string $owner,
|
|
public string $name,
|
|
public string $fullName,
|
|
public string $htmlUrl,
|
|
public ?string $defaultBranch,
|
|
public bool $isPrivate,
|
|
) {}
|
|
}
|