| 1 | <?php |
||
| 5 | class MediawikiArticleImage { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $url; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | private $width; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $height; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $title; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $url |
||
| 29 | * @param int $width |
||
| 30 | * @param int $height |
||
| 31 | * @param string $title |
||
| 32 | */ |
||
| 33 | 4 | public function __construct($url, $width, $height, $title) { |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 1 | public function getUrl() { |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | 1 | public function getWidth() { |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return int |
||
| 56 | */ |
||
| 57 | 1 | public function getHeight() { |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 1 | public function getTitle() { |
|
| 67 | } |
||
| 68 |