diff --git a/src/Error.php b/src/Error.php index f88902b..1387ddf 100644 --- a/src/Error.php +++ b/src/Error.php @@ -37,6 +37,7 @@ public function chain(callable $map): ResultInterface return $this; } + /** @return TError */ public function get() { return $this->value; diff --git a/src/Success.php b/src/Success.php index be02bdd..b83fe33 100644 --- a/src/Success.php +++ b/src/Success.php @@ -36,6 +36,7 @@ public function chain(callable $map): ResultInterface return $map($this->value); } + /** @return TSuccess */ public function get() { return $this->value;