示例#1
0
 public function __construct($url, $id, $code)
 {
     ThumbnailValidation::isURL($url);
     $this->url = $url;
     $this->id = $id;
     $this->code = $code;
 }
示例#2
0
 public function setUrl($url)
 {
     ThumbnailValidation::isURL($url);
     $this->url = $url;
     $this->renderCode();
     return $this;
 }