Skip to content

Commit

Permalink
Added AppVersion::is10x() method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Sep 8, 2022
1 parent 46e57f0 commit 5bbac1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Facades/AppVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @method static bool is7x()
* @method static bool is8x()
* @method static bool is9x()
* @method static bool is10x()
* @method static int major()
* @method static int minor()
* @method static int patch()
Expand Down
5 changes: 5 additions & 0 deletions src/Support/AppVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public function is9x(): bool
return $this->major() === 9;
}

public function is10x(): bool
{
return $this->major() === 10;
}

public function major(): int
{
return (int) Str::before($this->version(), '.');
Expand Down

0 comments on commit 5bbac1a

Please sign in to comment.