⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.180
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ubuntu
/
vendor
/
vlucas
/
phpdotenv
/
src
/
Result
/
View File Name :
Result.php
<?php namespace Dotenv\Result; /** * @template T * @template E */ abstract class Result { /** * Get the success option value. * * @return \PhpOption\Option<T> */ abstract public function success(); /** * Get the success value, if possible. * * @throws \RuntimeException * * @return T */ public function getSuccess() { return $this->success()->get(); } /** * Map over the success value. * * @template S * * @param callable(T):S $f * * @return \Dotenv\Result\Result<S,E> */ abstract public function mapSuccess(callable $f); /** * Get the error option value. * * @return \PhpOption\Option<E> */ abstract public function error(); /** * Get the error value, if possible. * * @throws \RuntimeException * * @return E */ public function getError() { return $this->error()->get(); } /** * Map over the error value. * * @template F * * @param callable(E):F $f * * @return \Dotenv\Result\Result<T,F> */ abstract public function mapError(callable $f); }