Skip to content

Commit c36da00

Browse files
authored
Merge pull request #178 from xiCO2k/add-methods-to-facade-to-support-phpstan
feat: Add `@method` to the `Facade.php` file to support static analysers
2 parents 93b4c6e + 062c642 commit c36da00

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/Facade.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,34 @@
77
/**
88
* Facading class to mask the service behind the "Browser" class.
99
*
10+
* @method static bool isMobile()
11+
* @method static bool isTablet()
12+
* @method static bool isDesktop()
13+
* @method static bool isChrome()
14+
* @method static bool isFirefox()
15+
* @method static bool isOpera()
16+
* @method static bool isSafari()
17+
* @method static bool isIE()
18+
* @method static bool isEdge()
19+
* @method static bool isWindows()
20+
* @method static bool isAndroid()
21+
* @method static bool isMac()
22+
* @method static bool isLinux()
23+
* @method static bool isInApp()
24+
* @method static bool isBot()
25+
* @method static string mobileGrade()
26+
* @method static string deviceModel()
27+
* @method static string deviceFamily()
28+
* @method static string|null platformFamily()
29+
* @method static string|null browserFamily()
30+
* @method static string browserEngine()
31+
* @method static int browserVersionMajor()
32+
* @method static int browserVersionMinor()
33+
* @method static int browserVersionPatch()
34+
* @method static int platformVersionMajor()
35+
* @method static int platformVersionMinor()
36+
* @method static int platformVersionPatch()
37+
*
1038
* @example Browser::isMobile();
1139
* @package hisorange\BrowserDetect
1240
*/

0 commit comments

Comments
 (0)