*/ public array $topics = [], /** @var array Bytes of code per language. */ public array $languages = [], public int $stars = 0, public int $forks = 0, public int $watchers = 0, public int $openIssuesCount = 0, public int $contributorsCount = 0, public int $commitsLastYear = 0, public bool $isArchived = false, public bool $isFork = false, public ?CarbonImmutable $pushedAt = null, public ?CarbonImmutable $createdAt = null, /** @var array */ public array $issues = [], ) {} /** * The columns this snapshot writes onto a Repository model. * * @return array */ public function toAttributes(): array { return [ 'html_url' => $this->htmlUrl, 'description' => $this->description, 'homepage' => $this->homepage, 'default_branch' => $this->defaultBranch, 'primary_language' => $this->primaryLanguage, 'license' => $this->license, 'topics' => $this->topics, 'languages' => $this->languages, 'stars' => $this->stars, 'forks' => $this->forks, 'watchers' => $this->watchers, 'open_issues_count' => $this->openIssuesCount, 'contributors_count' => $this->contributorsCount, 'commits_last_year' => $this->commitsLastYear, 'is_archived' => $this->isArchived, 'is_fork' => $this->isFork, 'pushed_at' => $this->pushedAt, 'repo_created_at' => $this->createdAt, ]; } }