| 1 | <?php declare(strict_types=1); |
||
| 12 | abstract class Branch extends AbstractResource implements BranchInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | protected $id; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | protected $repository_id; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | protected $commit_id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $number; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var array |
||
| 36 | */ |
||
| 37 | protected $config; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | protected $state; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var DateTimeInterface |
||
| 46 | */ |
||
| 47 | protected $started_at; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var DateTimeInterface |
||
| 51 | */ |
||
| 52 | protected $finished_at; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @var int |
||
| 56 | */ |
||
| 57 | protected $duration; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @var array |
||
| 61 | */ |
||
| 62 | protected $job_ids; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @var bool |
||
| 66 | */ |
||
| 67 | protected $pull_request; |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return int |
||
| 71 | */ |
||
| 72 | 4 | public function id(): int |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @return int |
||
| 79 | */ |
||
| 80 | 4 | public function repositoryId(): int |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @return int |
||
| 87 | */ |
||
| 88 | 4 | public function commitId(): int |
|
| 92 | |||
| 93 | /** |
||
| 94 | * @return string |
||
| 95 | */ |
||
| 96 | 4 | public function number(): string |
|
| 100 | |||
| 101 | /** |
||
| 102 | * @return array |
||
| 103 | */ |
||
| 104 | public function config(): array |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return string |
||
| 111 | */ |
||
| 112 | 4 | public function state(): string |
|
| 116 | |||
| 117 | /** |
||
| 118 | * @return DateTimeInterface |
||
| 119 | */ |
||
| 120 | public function startedAt(): DateTimeInterface |
||
| 124 | |||
| 125 | /** |
||
| 126 | * @return DateTimeInterface |
||
| 127 | */ |
||
| 128 | public function finishedAt(): DateTimeInterface |
||
| 132 | |||
| 133 | /** |
||
| 134 | * @return int |
||
| 135 | */ |
||
| 136 | 4 | public function duration(): int |
|
| 140 | |||
| 141 | /** |
||
| 142 | * @return array |
||
| 143 | */ |
||
| 144 | public function jobIds(): array |
||
| 148 | |||
| 149 | /** |
||
| 150 | * @return bool |
||
| 151 | */ |
||
| 152 | 4 | public function pullRequest(): bool |
|
| 156 | } |
||
| 157 |