ryanwinchester/hubspot-php

View on GitHub
src/Utils.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SevenShores\Hubspot;

/**
 * Class Utils.
 *
 * @method \SevenShores\Hubspot\Utils\OAuth2   oAuth2()
 * @method \SevenShores\Hubspot\Utils\Webhooks Webhooks()
 */
class Utils
{
    public function __call(string $name, $arguments = null)
    {
        $endpoint = 'SevenShores\\Hubspot\\Utils\\'.ucfirst($name);

        return new $endpoint();
    }

    public static function getFactory()
    {
        return new static();
    }
}