for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the DigitalOceanV2 library.
*
* (c) Antoine Corcy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DigitalOceanV2\Api;
use DigitalOceanV2\Entity\RateLimit as RateLimitEntity;
/**
* @author Yassir Hannoun <[email protected]>
* @author Graham Campbell <[email protected]>
class RateLimit extends AbstractApi
{
* @return RateLimitEntity|null
public function getRateLimit()
if ($results = $this->adapter->getLatestResponseHeaders()) {
return new RateLimitEntity($results);
}