| 1 | <?php |
||
| 7 | class TwitterMediaSize implements TwitterSerializable |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $name; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $width; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $height; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var boolean |
||
| 26 | */ |
||
| 27 | private $resize; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | */ |
||
| 32 | 9 | public function __construct() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return int |
||
| 38 | */ |
||
| 39 | 9 | public function getHeight() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 6 | public function getName() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 9 | public function getResize() |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return int |
||
| 62 | */ |
||
| 63 | 9 | public function getWidth() |
|
| 67 | |||
| 68 | /** |
||
| 69 | * Static constructor. |
||
| 70 | * |
||
| 71 | * @param string $name |
||
| 72 | * @param int $width |
||
| 73 | * @param int $height |
||
| 74 | * @param boolean $resize |
||
| 75 | * |
||
| 76 | * @return TwitterMediaSize |
||
| 77 | */ |
||
| 78 | 9 | public static function create($name, $width, $height, $resize) |
|
| 89 | } |
||
| 90 |