mirror of https://github.com/helloxz/imgurl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
443 B
23 lines
443 B
<?php |
|
|
|
namespace Tinify; |
|
|
|
class ResultMeta { |
|
protected $meta; |
|
|
|
public function __construct($meta) { |
|
$this->meta = $meta; |
|
} |
|
|
|
public function width() { |
|
return intval($this->meta["image-width"]); |
|
} |
|
|
|
public function height() { |
|
return intval($this->meta["image-height"]); |
|
} |
|
|
|
public function location() { |
|
return isset($this->meta["location"]) ? $this->meta["location"] : null; |
|
} |
|
}
|
|
|