Initial Drupal 11 with DDEV setup
This commit is contained in:
23
vendor/laravel/prompts/src/Support/Result.php
vendored
Normal file
23
vendor/laravel/prompts/src/Support/Result.php
vendored
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user