Skip to content

Commit

Permalink
Made all attributes repeateable, as they could be working on various …
Browse files Browse the repository at this point in the history
…fields on a single model at once.
  • Loading branch information
kirkbushell committed Feb 4, 2024
1 parent f179a24 commit 2f31d83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Behaviours/CountCache/CountedBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Attribute;

#[Attribute(Attribute::TARGET_METHOD)]
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class CountedBy
{
public function __construct(readonly ?string $as = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Behaviours/SumCache/SummedBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Attribute;

#[Attribute(Attribute::TARGET_METHOD)]
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class SummedBy
{
public function __construct(readonly string $from, readonly string $as)
Expand Down
2 changes: 1 addition & 1 deletion src/Behaviours/ValueCache/ValuedBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Attribute;

#[Attribute(Attribute::TARGET_METHOD)]
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class ValuedBy
{
public function __construct(readonly string $from, readonly ?string $as)
Expand Down

0 comments on commit 2f31d83

Please sign in to comment.