-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
071f192
commit 471270b
Showing
8 changed files
with
95 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Spatie\ModelStates\Attributes; | ||
|
||
use Attribute; | ||
use JetBrains\PhpStorm\Immutable; | ||
|
||
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] | ||
class RegisterState | ||
{ | ||
public function __construct( | ||
#[Immutable] public string|array $stateClass, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/Dummy/AttributeState/AnotherDirectory/AttributeStateC.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Spatie\ModelStates\Tests\Dummy\AttributeState\AnotherDirectory; | ||
|
||
use Spatie\ModelStates\Tests\Dummy\AttributeState\AttributeState; | ||
|
||
class AttributeStateC extends AttributeState | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/Dummy/AttributeState/AnotherDirectory/AttributeStateD.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Spatie\ModelStates\Tests\Dummy\AttributeState\AnotherDirectory; | ||
|
||
use Spatie\ModelStates\Tests\Dummy\AttributeState\AttributeState; | ||
|
||
class AttributeStateD extends AttributeState | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/Dummy/AttributeState/AnotherDirectory/AttributeStateE.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Spatie\ModelStates\Tests\Dummy\AttributeState\AnotherDirectory; | ||
|
||
use Spatie\ModelStates\Tests\Dummy\AttributeState\AttributeState; | ||
|
||
class AttributeStateE extends AttributeState | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/Dummy/AttributeState/AnotherDirectory/AttributeStateF.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Spatie\ModelStates\Tests\Dummy\AttributeState\AnotherDirectory; | ||
|
||
use Spatie\ModelStates\Tests\Dummy\AttributeState\AttributeState; | ||
|
||
class AttributeStateF extends AttributeState | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters