1 | <?php declare(strict_types=1); |
||
8 | abstract class EmptyRepository implements RepositoryInterface, EmptyResourceInterface |
||
9 | { |
||
10 | /** |
||
11 | * @return int |
||
12 | */ |
||
13 | 2 | public function id() : int |
|
17 | |||
18 | /** |
||
19 | * @return string |
||
20 | */ |
||
21 | 2 | public function name() : string |
|
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | 2 | public function fullName() : string |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 2 | public function url() : string |
|
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | 2 | public function description() : string |
|
49 | |||
50 | /** |
||
51 | * @return bool |
||
52 | */ |
||
53 | 2 | public function private() : bool |
|
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | 2 | public function fork() : bool |
|
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | 2 | public function homepage() : string |
|
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 2 | public function language() : string |
|
81 | |||
82 | /** |
||
83 | * @return int |
||
84 | */ |
||
85 | 2 | public function forksCount() : int |
|
89 | |||
90 | /** |
||
91 | * @return int |
||
92 | */ |
||
93 | 2 | public function stargazersCount() : int |
|
97 | |||
98 | /** |
||
99 | * @return int |
||
100 | */ |
||
101 | 2 | public function watchersCount() : int |
|
105 | |||
106 | /** |
||
107 | * @return int |
||
108 | */ |
||
109 | 2 | public function size() : int |
|
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | 2 | public function defaultBranch() : string |
|
121 | |||
122 | /** |
||
123 | * @return int |
||
124 | */ |
||
125 | 2 | public function openIssuesCount() : int |
|
129 | |||
130 | /** |
||
131 | * @return bool |
||
132 | */ |
||
133 | 2 | public function hasIssues() : bool |
|
137 | |||
138 | /** |
||
139 | * @return bool |
||
140 | */ |
||
141 | 2 | public function hasWiki() : bool |
|
145 | |||
146 | /** |
||
147 | * @return bool |
||
148 | */ |
||
149 | 2 | public function hasPages() : bool |
|
153 | |||
154 | /** |
||
155 | * @return bool |
||
156 | */ |
||
157 | 2 | public function hasDownloads() : bool |
|
161 | |||
162 | /** |
||
163 | * @return DateTimeInterface |
||
164 | */ |
||
165 | 2 | public function pushedAt() : DateTimeInterface |
|
169 | |||
170 | /** |
||
171 | * @return DateTimeInterface |
||
172 | */ |
||
173 | 2 | public function createdAt() : DateTimeInterface |
|
177 | |||
178 | /** |
||
179 | * @return DateTimeInterface |
||
180 | */ |
||
181 | 2 | public function updatedAt() : DateTimeInterface |
|
185 | |||
186 | /** |
||
187 | * @return array |
||
188 | */ |
||
189 | public function permissions() : array |
||
193 | /** |
||
194 | * @return string |
||
195 | */ |
||
196 | public function htmlUrl() : string |
||
200 | } |
||
201 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: