PhpOptionRepo::findMaybe( $success )


Source

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

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

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