44 */
55namespace Embed ;
66
7- use Embed \Url ;
87
98class Request
109{
@@ -18,13 +17,12 @@ class Request
1817 private $ jsonContent ;
1918 private $ htmlContent ;
2019
21-
2220 /**
2321 * Constructor. Sets the url
2422 *
25- * @param Url $url The Url instance
26- * @param null|string $resolverClass The resolver classname
27- * @param null|array $resolverConfig The resolver configuration
23+ * @param Url $url The Url instance
24+ * @param null|string $resolverClass The resolver classname
25+ * @param null|array $resolverConfig The resolver configuration
2826 */
2927 public function __construct (Url $ url , $ resolverClass = null , array $ resolverConfig = null )
3028 {
@@ -39,7 +37,6 @@ public function __construct(Url $url, $resolverClass = null, array $resolverConf
3937 $ this ->startingUrl = $ url ;
4038 }
4139
42-
4340 /**
4441 * Magic method to retrieve the resolver an url in lazy mode
4542 */
@@ -56,18 +53,16 @@ public function __get($name)
5653 }
5754 }
5855
59-
6056 /**
6157 * Creates a new request with the same configuration than this
6258 *
63- * @param string $url The url string
59+ * @param string $url The url string
6460 */
6561 public function createRequest ($ url )
6662 {
6763 return new Request (new Url ($ url ), $ this ->resolverClass , $ this ->resolverConfig );
6864 }
6965
70-
7166 /**
7267 * Set the url resolver class used for http requests
7368 *
@@ -98,7 +93,6 @@ public function setResolverConfig(array $config)
9893 $ this ->resolverConfig = $ config ;
9994 }
10095
101-
10296 /**
10397 * Clear the cache of the response
10498 *
@@ -132,7 +126,6 @@ public function getRequestInfo()
132126 return $ this ->resolver ->getRequestInfo ();
133127 }
134128
135-
136129 /**
137130 * Get the http code of the url
138131 *
0 commit comments