Skip to content

Commit

Permalink
Added @phpstan-require-implements constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <tom@inflatablecookie.com>
  • Loading branch information
betterthanclay committed Aug 22, 2024
1 parent ec40b21 commit 0022285
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Blueprint/WithActionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Chronos\Blueprint;

/**
* @phpstan-require-implements WithActions
*/
trait WithActionsTrait
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Blueprint/WithDurationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

use Carbon\CarbonInterval;

/**
* @phpstan-require-implements WithDuration
*/
trait WithDurationTrait
{
protected ?CarbonInterval $duration = null;
Expand Down
3 changes: 3 additions & 0 deletions src/Blueprint/WithIdentityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use DecodeLabs\Dictum;
use DecodeLabs\Exceptional;

/**
* @phpstan-require-implements WithIdentity
*/
trait WithIdentityTrait
{
protected string $id;
Expand Down
3 changes: 3 additions & 0 deletions src/Blueprint/WithPriorityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

use DecodeLabs\Chronos\Priority;

/**
* @phpstan-require-implements WithPriority
*/
trait WithPriorityTrait
{
protected Priority $priority = Priority::Medium;
Expand Down
3 changes: 3 additions & 0 deletions src/Blueprint/WithPublishingTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Chronos\Blueprint;

/**
* @phpstan-require-implements WithPublishing
*/
trait WithPublishingTrait
{
protected ?string $version = null;
Expand Down
3 changes: 3 additions & 0 deletions src/BlueprintTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Chronos;

/**
* @phpstan-require-implements Blueprint
*/
trait BlueprintTrait
{
/**
Expand Down

0 comments on commit 0022285

Please sign in to comment.