widmogrod/php-functional

View on GitHub
src/Common/ValueOfTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace Widmogrod\Common;

trait ValueOfTrait
{
    /**
     * Return value wrapped by Monad
     *
     * @return mixed
     */
    public function extract()
    {
        return \Widmogrod\Functional\valueOf($this->value);
    }
}