1 | <?php |
||
8 | abstract class Branch implements BranchInterface |
||
9 | { |
||
10 | use TransportAwareTrait; |
||
11 | |||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | protected $id; |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | protected $repository_id; |
||
21 | |||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | protected $commit_id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $number; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $config; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $state; |
||
41 | |||
42 | /** |
||
43 | * @var DateTimeInterface |
||
44 | */ |
||
45 | protected $started_at; |
||
46 | |||
47 | /** |
||
48 | * @var DateTimeInterface |
||
49 | */ |
||
50 | protected $finished_at; |
||
51 | |||
52 | /** |
||
53 | * @var int |
||
54 | */ |
||
55 | protected $duration; |
||
56 | |||
57 | /** |
||
58 | * @var array |
||
59 | */ |
||
60 | protected $job_ids; |
||
61 | |||
62 | /** |
||
63 | * @var bool |
||
64 | */ |
||
65 | protected $pull_request; |
||
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | public function id() : int |
||
74 | |||
75 | /** |
||
76 | * @return int |
||
77 | */ |
||
78 | public function repositoryId() : int |
||
82 | |||
83 | /** |
||
84 | * @return int |
||
85 | */ |
||
86 | public function commitId() : int |
||
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | public function number() : string |
||
98 | |||
99 | /** |
||
100 | * @return array |
||
101 | */ |
||
102 | public function config() : array |
||
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | public function state() : string |
||
114 | |||
115 | /** |
||
116 | * @return DateTimeInterface |
||
117 | */ |
||
118 | public function startedAt() : DateTimeInterface |
||
122 | |||
123 | /** |
||
124 | * @return DateTimeInterface |
||
125 | */ |
||
126 | public function finishedAt() : DateTimeInterface |
||
130 | |||
131 | /** |
||
132 | * @return int |
||
133 | */ |
||
134 | public function duration() : int |
||
138 | |||
139 | /** |
||
140 | * @return array |
||
141 | */ |
||
142 | public function jobIds() : array |
||
146 | |||
147 | /** |
||
148 | * @return bool |
||
149 | */ |
||
150 | public function pullRequest() : bool |
||
154 | } |
||
155 |