Skip to content

Commit

Permalink
add api annotation to AcceptsResult::__construct
Browse files Browse the repository at this point in the history
  • Loading branch information
canvural authored and ondrejmirtes committed May 24, 2024
1 parent da6e9ae commit c55d0e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Type/AcceptsResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class AcceptsResult
{

/**
* @api
* @param list<string> $reasons
*/
public function __construct(
Expand Down Expand Up @@ -43,9 +44,12 @@ public static function createYes(): self
return new self(TrinaryLogic::createYes(), []);
}

public static function createNo(): self
/**
* @param list<string> $reasons
*/
public static function createNo(array $reasons = []): self
{
return new self(TrinaryLogic::createNo(), []);
return new self(TrinaryLogic::createNo(), $reasons);
}

public static function createMaybe(): self
Expand Down

0 comments on commit c55d0e3

Please sign in to comment.