@@ 15-174 (lines=160) @@ | ||
12 | * ) |
|
13 | * @EmptyResource("Contents\EmptyDirectory") |
|
14 | */ |
|
15 | abstract class Directory extends AbstractResource implements DirectoryInterface |
|
16 | { |
|
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | protected $type; |
|
21 | ||
22 | /** |
|
23 | * @var string |
|
24 | */ |
|
25 | protected $encoding; |
|
26 | ||
27 | /** |
|
28 | * @var int |
|
29 | */ |
|
30 | protected $size; |
|
31 | ||
32 | /** |
|
33 | * @var string |
|
34 | */ |
|
35 | protected $name; |
|
36 | ||
37 | /** |
|
38 | * @var string |
|
39 | */ |
|
40 | protected $path; |
|
41 | ||
42 | /** |
|
43 | * @var string |
|
44 | */ |
|
45 | protected $sha; |
|
46 | ||
47 | /** |
|
48 | * @var string |
|
49 | */ |
|
50 | protected $url; |
|
51 | ||
52 | /** |
|
53 | * @var string |
|
54 | */ |
|
55 | protected $git_url; |
|
56 | ||
57 | /** |
|
58 | * @var string |
|
59 | */ |
|
60 | protected $html_url; |
|
61 | ||
62 | /** |
|
63 | * @var string |
|
64 | */ |
|
65 | protected $download_url; |
|
66 | ||
67 | /** |
|
68 | * @var string |
|
69 | */ |
|
70 | protected $repository_fullname; |
|
71 | ||
72 | /** |
|
73 | * @var Links |
|
74 | */ |
|
75 | // @codingStandardsIgnoreStart |
|
76 | protected $_links; |
|
77 | // @codingStandardsIgnoreEnd |
|
78 | ||
79 | /** |
|
80 | * @return string |
|
81 | */ |
|
82 | public function type() : string |
|
83 | { |
|
84 | return $this->type; |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * @return string |
|
89 | */ |
|
90 | public function encoding() : string |
|
91 | { |
|
92 | return $this->encoding; |
|
93 | } |
|
94 | ||
95 | /** |
|
96 | * @return int |
|
97 | */ |
|
98 | public function size() : int |
|
99 | { |
|
100 | return $this->size; |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * @return string |
|
105 | */ |
|
106 | public function name() : string |
|
107 | { |
|
108 | return $this->name; |
|
109 | } |
|
110 | ||
111 | /** |
|
112 | * @return string |
|
113 | */ |
|
114 | public function path() : string |
|
115 | { |
|
116 | return $this->path; |
|
117 | } |
|
118 | ||
119 | /** |
|
120 | * @return string |
|
121 | */ |
|
122 | public function sha() : string |
|
123 | { |
|
124 | return $this->sha; |
|
125 | } |
|
126 | ||
127 | /** |
|
128 | * @return string |
|
129 | */ |
|
130 | public function url() : string |
|
131 | { |
|
132 | return $this->url; |
|
133 | } |
|
134 | ||
135 | /** |
|
136 | * @return string |
|
137 | */ |
|
138 | public function gitUrl() : string |
|
139 | { |
|
140 | return $this->git_url; |
|
141 | } |
|
142 | ||
143 | /** |
|
144 | * @return string |
|
145 | */ |
|
146 | public function htmlUrl() : string |
|
147 | { |
|
148 | return $this->html_url; |
|
149 | } |
|
150 | ||
151 | /** |
|
152 | * @return string |
|
153 | */ |
|
154 | public function downloadUrl() : string |
|
155 | { |
|
156 | return $this->download_url; |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * @return string |
|
161 | */ |
|
162 | public function repositoryFullname(): string |
|
163 | { |
|
164 | return $this->repository_fullname; |
|
165 | } |
|
166 | ||
167 | /** |
|
168 | * @return Links |
|
169 | */ |
|
170 | public function links() : Links |
|
171 | { |
|
172 | return $this->_links; |
|
173 | } |
|
174 | } |
|
175 |
@@ 15-187 (lines=173) @@ | ||
12 | * ) |
|
13 | * @EmptyResource("Contents\EmptyFile") |
|
14 | */ |
|
15 | abstract class File extends AbstractResource implements FileInterface |
|
16 | { |
|
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | protected $type; |
|
21 | ||
22 | /** |
|
23 | * @var string |
|
24 | */ |
|
25 | protected $encoding; |
|
26 | ||
27 | /** |
|
28 | * @var int |
|
29 | */ |
|
30 | protected $size; |
|
31 | ||
32 | /** |
|
33 | * @var string |
|
34 | */ |
|
35 | protected $name; |
|
36 | ||
37 | /** |
|
38 | * @var string |
|
39 | */ |
|
40 | protected $path; |
|
41 | ||
42 | /** |
|
43 | * @var string |
|
44 | */ |
|
45 | protected $content; |
|
46 | ||
47 | /** |
|
48 | * @var string |
|
49 | */ |
|
50 | protected $sha; |
|
51 | ||
52 | /** |
|
53 | * @var string |
|
54 | */ |
|
55 | protected $url; |
|
56 | ||
57 | /** |
|
58 | * @var string |
|
59 | */ |
|
60 | protected $git_url; |
|
61 | ||
62 | /** |
|
63 | * @var string |
|
64 | */ |
|
65 | protected $html_url; |
|
66 | ||
67 | /** |
|
68 | * @var string |
|
69 | */ |
|
70 | protected $download_url; |
|
71 | ||
72 | /** |
|
73 | * @var string |
|
74 | */ |
|
75 | protected $repository_fullname; |
|
76 | ||
77 | /** |
|
78 | * @var Links |
|
79 | */ |
|
80 | // @codingStandardsIgnoreStart |
|
81 | protected $_links; |
|
82 | // @codingStandardsIgnoreEnd |
|
83 | ||
84 | /** |
|
85 | * @return string |
|
86 | */ |
|
87 | public function type() : string |
|
88 | { |
|
89 | return $this->type; |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * @return string |
|
94 | */ |
|
95 | public function encoding() : string |
|
96 | { |
|
97 | return $this->encoding; |
|
98 | } |
|
99 | ||
100 | /** |
|
101 | * @return int |
|
102 | */ |
|
103 | public function size() : int |
|
104 | { |
|
105 | return $this->size; |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * @return string |
|
110 | */ |
|
111 | public function name() : string |
|
112 | { |
|
113 | return $this->name; |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * @return string |
|
118 | */ |
|
119 | public function path() : string |
|
120 | { |
|
121 | return $this->path; |
|
122 | } |
|
123 | ||
124 | /** |
|
125 | * @return string |
|
126 | */ |
|
127 | public function content() : string |
|
128 | { |
|
129 | return $this->content; |
|
130 | } |
|
131 | ||
132 | /** |
|
133 | * @return string |
|
134 | */ |
|
135 | public function sha() : string |
|
136 | { |
|
137 | return $this->sha; |
|
138 | } |
|
139 | ||
140 | /** |
|
141 | * @return string |
|
142 | */ |
|
143 | public function url() : string |
|
144 | { |
|
145 | return $this->url; |
|
146 | } |
|
147 | ||
148 | /** |
|
149 | * @return string |
|
150 | */ |
|
151 | public function gitUrl() : string |
|
152 | { |
|
153 | return $this->git_url; |
|
154 | } |
|
155 | ||
156 | /** |
|
157 | * @return string |
|
158 | */ |
|
159 | public function htmlUrl() : string |
|
160 | { |
|
161 | return $this->html_url; |
|
162 | } |
|
163 | ||
164 | /** |
|
165 | * @return string |
|
166 | */ |
|
167 | public function downloadUrl() : string |
|
168 | { |
|
169 | return $this->download_url; |
|
170 | } |
|
171 | ||
172 | /** |
|
173 | * @return string |
|
174 | */ |
|
175 | public function repositoryFullname(): string |
|
176 | { |
|
177 | return $this->repository_fullname; |
|
178 | } |
|
179 | ||
180 | /** |
|
181 | * @return Links |
|
182 | */ |
|
183 | public function links() : Links |
|
184 | { |
|
185 | return $this->_links; |
|
186 | } |
|
187 | } |
|
188 |