Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 9401025

Browse files
authored
Merge pull request #8 from xphoenyx/develop
Update of phpdoc in facade
2 parents 23e6613 + 7478c37 commit 9401025

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

src/Facade/PhantomJs.php

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace Josh\Component\PhantomJs\Facade;
44

5-
use JonnyW\PhantomJs\Engine;
65
use Illuminate\Support\Facades\Facade;
6+
use Josh\Component\PhantomJs\PhantomJs as PhantomJsComponent;
7+
use JonnyW\PhantomJs\Engine;
8+
use JonnyW\PhantomJs\Client;
79
use JonnyW\PhantomJs\Http\CaptureRequest;
810
use JonnyW\PhantomJs\Http\PdfRequest;
911
use JonnyW\PhantomJs\Http\Request;
@@ -14,22 +16,24 @@
1416
use JonnyW\PhantomJs\Procedure\ProcedureCompilerInterface;
1517

1618
/**
17-
* @method static getLog
18-
* @method static void isLazy
19-
* @method static Engine getEngine
20-
* @method static string getProcedure
21-
* @method static void setProcedure($procedure)
22-
* @method static MessageFactoryInterface getMessageFactory
23-
* @method static ProcedureLoaderInterface getProcedureLoader
24-
* @method static ProcedureCompilerInterface getProcedureCompiler
25-
* @method static ResponseInterface send(RequestInterface $request, ResponseInterface $response)
26-
* @method static PdfRequest createPdf(string $url, string $method = 'GET', int $timeout = 5000, array $headers = [], array $parameters = [])
27-
* @method static CaptureRequest createImage(string $url, string $method = 'GET', int $timeout = 5000, array $headers = [], array $parameters = [])
28-
* @method static CaptureRequest request(string $url, string $method = 'GET', int $timeout = 5000, array $headers = [], array $parameters = [])
19+
* @method static PhantomJsComponent setBinaryPath($path)
20+
* @method static PhantomJsComponent setDebug($debug)
21+
* @method static PhantomJsComponent setCache($cache)
22+
* @method static Engine getEngine()
23+
* @method static PhantomJsServiceContainer getContainer()
24+
* @method static Client getClient()
25+
* @method static PhantomJsComponent setClient($client = null)
26+
* @method static mixed getOptions()
27+
* @method static PhantomJsComponent setOptions(array $options)
28+
* @method static PhantomJsComponent isLazy()
29+
* @method static CaptureRequest request(string $url, string $method = RequestInterface::METHOD_GET, int $timeout = 5000, array $headers = [], array $parameters = [])
30+
* @method static PdfRequest createPdf(string $url, string $method = RequestInterface::METHOD_GET, int $timeout = 5000, array $headers = [], array $parameters = [])
31+
* @method static CaptureRequest createImage(string $url, string $method = RequestInterface::METHOD_GET, int $timeout = 5000, array $headers = [], array $parameters = [])
2932
* @method static Request get(string $url, array $headers = [], array $parameters = [])
3033
* @method static Request post(string $url, array $headers = [], array $parameters = [])
3134
* @method static Request put(string $url, array $headers = [], array $parameters = [])
3235
* @method static Request delete(string $url, array $headers = [], array $parameters = [])
36+
* @method static ResponseInterface send(RequestInterface $request, ResponseInterface $response = null)
3337
*/
3438
class PhantomJs extends Facade {
3539

@@ -44,4 +48,4 @@ protected static function getFacadeAccessor()
4448
{
4549
return 'phantomjs';
4650
}
47-
}
51+
}

0 commit comments

Comments
 (0)