Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Add missing methods to Puppeteer class phpDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Pankratov committed Jan 26, 2021
1 parent 7c28d5b commit 03ee957
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/GenerateDocumentationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static function getDocumentation(string $puppeteerPath, array $resourceN

private static function getResourceNames(): array
{
return array_map(function (string $filePath): string {
return array_map(static function (string $filePath): string {
return explode('.', \basename($filePath))[0];
}, \glob(self::RESOURCES_DIR.'/*'));
}
Expand Down
6 changes: 6 additions & 0 deletions src/Puppeteer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Nesk\Puphpeteer;

use Nesk\Puphpeteer\Resources\Browser;
use Nesk\Puphpeteer\Resources\BrowserFetcher;
use Psr\Log\LoggerInterface;
use Symfony\Component\Process\Process;
use Nesk\Rialto\AbstractEntryPoint;
Expand All @@ -11,11 +12,16 @@
/**
* @property-read mixed devices
* @property-read mixed errors
* @property-read string product
* @method Browser connect(array $options)
* @method Browser launch(array $options = [])
* @method string[] defaultArgs(array $options = [])
* @method void registerCustomQueryHandler(string $name, mixed $queryHandler)
* @method void unregisterCustomQueryHandler(string $name)
* @method string[] customQueryHandlerNames()
* @method void clearCustomQueryHandlers()
* @method BrowserFetcher createBrowserFetcher(array $options = [])
* @method string executablePath()
*/
class Puppeteer extends AbstractEntryPoint
{
Expand Down

0 comments on commit 03ee957

Please sign in to comment.