����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/public_html/vendor/vlucas/phpdotenv/src/Result/ |
Upload File : |
<?php namespace Dotenv\Result; use PhpOption\None; use PhpOption\Some; /** * @template T * @template E * @extends \Dotenv\Result\Result<T,E> */ class Success extends Result { /** * @var T */ private $value; /** * Internal constructor for a success value. * * @param T $value * * @return void */ private function __construct($value) { $this->value = $value; } /** * Create a new error value. * * @template S * * @param S $value * * @return \Dotenv\Result\Result<S,E> */ public static function create($value) { return new self($value); } /** * Get the success option value. * * @return \PhpOption\Option<T> */ public function success() { return Some::create($this->value); } /** * Map over the success value. * * @template S * * @param callable(T):S $f * * @return \Dotenv\Result\Result<S,E> */ public function mapSuccess(callable $f) { return self::create($f($this->value)); } /** * Get the error option value. * * @return \PhpOption\Option<E> */ public function error() { return None::create(); } /** * Map over the error value. * * @template F * * @param callable(E):F $f * * @return \Dotenv\Result\Result<T,F> */ public function mapError(callable $f) { return self::create($this->value); } }