for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Game\Features\Answers;
use RuntimeException;
use Throwable;
final class WrongAnswerException extends RuntimeException
{
private array $rightAnswers;
public function __construct(array $rightAnswers, $message = "", $code = 0, Throwable $previous = null)
$this->rightAnswers = $rightAnswers;
parent::__construct($message, $code, $previous);
}
public function rightAnswers(): array
return $this->rightAnswers;