コード例 #1
0
 /**
  * 
  * @param WebResource $webResource
  * @return WebPage
  */
 private function translateHtmlWebResourceToWebPage(WebResource $webResource)
 {
     $webPage = new WebPage();
     $webPage->setContent($webResource->getContent());
     $webPage->setUrl($webResource->getUrl());
     return $webPage;
 }