nishimura/laiz-monad

View on GitHub
src/Laiz/Func/Either/Left.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Laiz\Func\Either;

class Left extends \Laiz\Func\Either
{
    /**
     * @return mixed
     */
    public function either(callable $left, callable $right)
    {
        return $left($this->value);
    }
}