src/Utils.php
<?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();
}
}