@@ -30,46 +30,53 @@ public function __construct($deferred)
3030 $ this ->deferred = $ deferred ;
3131 }
3232
33+ #[\Override]
3334 public function map (callable $ map ): self
3435 {
3536 $ captured = $ this ->capture ();
3637
3738 return new self (static fn () => self ::detonate ($ captured )->map ($ map ));
3839 }
3940
41+ #[\Override]
4042 public function flatMap (callable $ map ): Either
4143 {
4244 $ captured = $ this ->capture ();
4345
4446 return Either::defer (static fn () => self ::detonate ($ captured )->flatMap ($ map ));
4547 }
4648
49+ #[\Override]
4750 public function leftMap (callable $ map ): self
4851 {
4952 $ captured = $ this ->capture ();
5053
5154 return new self (static fn () => self ::detonate ($ captured )->leftMap ($ map ));
5255 }
5356
57+ #[\Override]
5458 public function match (callable $ right , callable $ left )
5559 {
5660 return $ this ->unwrap ()->match ($ right , $ left );
5761 }
5862
63+ #[\Override]
5964 public function otherwise (callable $ otherwise ): Either
6065 {
6166 $ captured = $ this ->capture ();
6267
6368 return Either::defer (static fn () => self ::detonate ($ captured )->otherwise ($ otherwise ));
6469 }
6570
71+ #[\Override]
6672 public function filter (callable $ predicate , callable $ otherwise ): Implementation
6773 {
6874 $ captured = $ this ->capture ();
6975
7076 return new self (static fn () => self ::detonate ($ captured )->filter ($ predicate , $ otherwise ));
7177 }
7278
79+ #[\Override]
7380 public function maybe (): Maybe
7481 {
7582 $ captured = $ this ->capture ();
@@ -80,18 +87,21 @@ public function maybe(): Maybe
8087 /**
8188 * @return Either<L1, R1>
8289 */
90+ #[\Override]
8391 public function memoize (): Either
8492 {
8593 return $ this ->unwrap ();
8694 }
8795
96+ #[\Override]
8897 public function flip (): self
8998 {
9099 $ captured = $ this ->capture ();
91100
92101 return new self (static fn () => self ::detonate ($ captured )->flip ());
93102 }
94103
104+ #[\Override]
95105 public function eitherWay (callable $ right , callable $ left ): Either
96106 {
97107 $ captured = $ this ->capture ();
0 commit comments