new commit

This commit is contained in:
fiqhpratama
2024-11-27 11:16:45 +07:00
parent 8435faf0e9
commit 453d9bb470
10880 changed files with 2249737 additions and 72 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Laravel\Prompts\Support;
/**
* Result.
*
* This is a 'sentinel' value. It wraps a return value, which can
* allow us to differentiate between a `null` return value and
* a `null` return value that's intended to continue a loop.
*/
final class Result
{
public function __construct(public readonly mixed $value)
{
//
}
public static function from(mixed $value): self
{
return new self($value);
}
}