1 | <?php |
||
10 | class GithubRepoSource implements GithubRepo |
||
11 | { |
||
12 | /** @var GithubRepoId */ |
||
13 | private $id; |
||
14 | /** @var GithubUser */ |
||
15 | private $ownerUser; |
||
16 | /** @var string */ |
||
17 | private $owner; |
||
18 | /** @var string */ |
||
19 | private $name; |
||
20 | /** @var string */ |
||
21 | private $fullName; |
||
22 | /** @var string */ |
||
23 | private $htmlUrl; |
||
24 | /** @var string */ |
||
25 | private $description; |
||
26 | /** @var int */ |
||
27 | private $fork; |
||
28 | /** @var string */ |
||
29 | private $defaultBranch; |
||
30 | /** @var int */ |
||
31 | private $githubPrivate; |
||
32 | /** @var string */ |
||
33 | private $gitUrl; |
||
34 | /** @var string */ |
||
35 | private $sshUrl; |
||
36 | /** @var DateTime */ |
||
37 | private $githubCreatedAt; |
||
38 | /** @var DateTime */ |
||
39 | private $githubUpdatedAt; |
||
40 | /** @var DateTime */ |
||
41 | private $githubPushedAt; |
||
42 | |||
43 | /** |
||
44 | * GithubRepoSource constructor. |
||
45 | * |
||
46 | * @param GithubRepoId $id |
||
47 | * @param GithubUser $ownerUser |
||
48 | * @param string $owner |
||
49 | * @param string $name |
||
50 | * @param string $fullName |
||
51 | * @param string $htmlUrl |
||
52 | * @param string $description |
||
53 | * @param int $fork |
||
54 | * @param string $defaultBranch |
||
55 | * @param int $githubPrivate |
||
56 | * @param string $gitUrl |
||
57 | * @param string $sshUrl |
||
58 | * @param DateTime $githubCreatedAt |
||
59 | * @param DateTime $githubUpdatedAt |
||
60 | * @param DateTime $githubPushedAt |
||
61 | * |
||
62 | * @SuppressWarnings(PHPMD.ExcessiveParameterList) |
||
63 | */ |
||
64 | public function __construct( |
||
97 | |||
98 | /** |
||
99 | * @return GithubRepoId |
||
100 | */ |
||
101 | public function getId() |
||
105 | |||
106 | /** |
||
107 | * @return GithubUserId |
||
108 | */ |
||
109 | public function getOwnerUserId() |
||
113 | |||
114 | /** |
||
115 | * @return GithubUser |
||
116 | */ |
||
117 | public function getOwnerUser() |
||
121 | |||
122 | /** |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getOwner() |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getName() |
||
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | public function getFullName() |
||
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | public function getHtmlUrl() |
||
153 | |||
154 | /** |
||
155 | * @return string |
||
156 | */ |
||
157 | public function getDescription() |
||
161 | |||
162 | /** |
||
163 | * @return int |
||
164 | */ |
||
165 | public function getFork() |
||
169 | |||
170 | /** |
||
171 | * @return string |
||
172 | */ |
||
173 | public function getDefaultBranch() |
||
177 | |||
178 | /** |
||
179 | * @return int |
||
180 | */ |
||
181 | public function getGithubPrivate() |
||
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | public function getGitUrl() |
||
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | public function getSshUrl() |
||
201 | |||
202 | /** |
||
203 | * @return DateTime |
||
204 | */ |
||
205 | public function getGithubCreatedAt() |
||
209 | |||
210 | /** |
||
211 | * @return DateTime |
||
212 | */ |
||
213 | public function getGithubUpdatedAt() |
||
217 | |||
218 | /** |
||
219 | * @return DateTime |
||
220 | */ |
||
221 | public function getGithubPushedAt() |
||
225 | } |
||
226 |