PhpOptionRepo


Source

File: vendor/phpoption/phpoption/tests/PhpOption/Tests/PerformanceTest.php

class PhpOptionRepo
{
    public function findMaybe($success)
    {
        if ($success) {
            return new \PhpOption\Some(new \stdClass);
        }

        return \PhpOption\None::create();
    }
}

Methods