Skip to content

Commit 1de86e9

Browse files
chore: update facade PHPDoc
1 parent 0a7e42e commit 1de86e9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Facades/ActiveState.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33
namespace Farbcode\StatefulResources\Facades;
44

55
use Farbcode\StatefulResources\ActiveState as ActiveStateService;
6+
use Farbcode\StatefulResources\Contracts\ResourceState;
67
use Illuminate\Support\Facades\Facade;
78

89
/**
9-
* @method static void setShared(string $state)
10+
* @method static void setShared(string|ResourceState $state)
1011
* @method static string getShared()
11-
* @method static void setForResource(string $resourceClass, string $state)
12+
* @method static void setForResource(string $resourceClass, string|ResourceState $state)
1213
* @method static string getForResource(string $resourceClass)
14+
* @method static bool matchesShared(string|ResourceState $state)
15+
* @method static bool matchesResource(string $resourceClass, string|ResourceState $state)
16+
* @method static string get(?string $resourceClass = null)
17+
* @method static void set(string|ResourceState $state, ?string $resourceClass = null)
18+
* @method static bool matches(string|ResourceState $state, ?string $resourceClass = null)
1319
*/
1420
class ActiveState extends Facade
1521
{

0 commit comments

Comments
 (0)