SevenShores\Hubspot\Factory::__call PHP Method

__call() public method

Return an instance of a Resource based on the method called.
public __call ( string $name, array $arguments = null ) : Resource
$name string
$arguments array
return SevenShores\Hubspot\Resources\Resource
    function __call($name, $arguments = null)
    {
        $resource = 'SevenShores\\Hubspot\\Resources\\' . ucfirst($name);
        return new $resource($this->client);
    }