1 | <?php declare(strict_types=1); |
||
17 | abstract class Branch extends AbstractResource implements BranchInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $name; |
||
23 | |||
24 | /** |
||
25 | * @var TreeInterface |
||
26 | */ |
||
27 | protected $commit; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $protected; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $protection_url; |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function name() : string |
||
46 | |||
47 | /** |
||
48 | * @return TreeInterface |
||
49 | */ |
||
50 | public function commit() : TreeInterface |
||
54 | |||
55 | /** |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function protected() : bool |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function protectionUrl() : string |
||
70 | } |
||
71 |