| 1 | <?php declare(strict_types=1); |
||
| 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 Links |
||
| 69 | */ |
||
| 70 | // @codingStandardsIgnoreStart |
||
| 71 | protected $_links; |
||
| 72 | // @codingStandardsIgnoreEnd |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function type() : string |
||
| 78 | { |
||
| 79 | return $this->type; |
||
| 80 | } |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | public function encoding() : string |
||
| 86 | { |
||
| 87 | return $this->encoding; |
||
| 88 | } |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return int |
||
| 92 | */ |
||
| 93 | public function size() : int |
||
| 94 | { |
||
| 95 | return $this->size; |
||
| 96 | } |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @return string |
||
| 100 | */ |
||
| 101 | public function name() : string |
||
| 102 | { |
||
| 103 | return $this->name; |
||
| 104 | } |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @return string |
||
| 108 | */ |
||
| 109 | public function path() : string |
||
| 110 | { |
||
| 111 | return $this->path; |
||
| 112 | } |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return string |
||
| 116 | */ |
||
| 117 | public function sha() : string |
||
| 118 | { |
||
| 119 | return $this->sha; |
||
| 120 | } |
||
| 121 | |||
| 122 | /** |
||
| 123 | * @return string |
||
| 124 | */ |
||
| 125 | public function url() : string |
||
| 126 | { |
||
| 127 | return $this->url; |
||
| 128 | } |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @return string |
||
| 132 | */ |
||
| 133 | public function gitUrl() : string |
||
| 134 | { |
||
| 135 | return $this->git_url; |
||
| 136 | } |
||
| 137 | |||
| 138 | /** |
||
| 139 | * @return string |
||
| 140 | */ |
||
| 141 | public function htmlUrl() : string |
||
| 142 | { |
||
| 143 | return $this->html_url; |
||
| 144 | } |
||
| 145 | |||
| 146 | /** |
||
| 147 | * @return string |
||
| 148 | */ |
||
| 149 | public function downloadUrl() : string |
||
| 150 | { |
||
| 151 | return $this->download_url; |
||
| 152 | } |
||
| 153 | |||
| 154 | /** |
||
| 155 | * @return Links |
||
| 156 | */ |
||
| 157 | public function links() : Links |
||
| 161 | } |
||
| 162 |