Skip to content

Commit

Permalink
Merge pull request #178 from xiCO2k/add-methods-to-facade-to-support-…
Browse files Browse the repository at this point in the history
…phpstan

feat: Add `@method` to the `Facade.php` file to support static analysers
  • Loading branch information
hisorange committed Nov 2, 2021
2 parents 93b4c6e + 062c642 commit c36da00
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,34 @@
/**
* Facading class to mask the service behind the "Browser" class.
*
* @method static bool isMobile()
* @method static bool isTablet()
* @method static bool isDesktop()
* @method static bool isChrome()
* @method static bool isFirefox()
* @method static bool isOpera()
* @method static bool isSafari()
* @method static bool isIE()
* @method static bool isEdge()
* @method static bool isWindows()
* @method static bool isAndroid()
* @method static bool isMac()
* @method static bool isLinux()
* @method static bool isInApp()
* @method static bool isBot()
* @method static string mobileGrade()
* @method static string deviceModel()
* @method static string deviceFamily()
* @method static string|null platformFamily()
* @method static string|null browserFamily()
* @method static string browserEngine()
* @method static int browserVersionMajor()
* @method static int browserVersionMinor()
* @method static int browserVersionPatch()
* @method static int platformVersionMajor()
* @method static int platformVersionMinor()
* @method static int platformVersionPatch()
*
* @example Browser::isMobile();
* @package hisorange\BrowserDetect
*/
Expand Down

0 comments on commit c36da00

Please sign in to comment.