You are here

public function AcquiaPurgeService::capacity in Acquia Purge 7

Retrieve the capacity tracker service.

Return value

AcquiaPurgeCapacity The capacity tracker object.

File

lib/AcquiaPurgeService.php, line 190
Contains AcquiaPurgeService.

Class

AcquiaPurgeService
The Acquia Purge service.

Code

public function capacity() {
  if (is_null($this->capacity)) {
    $class = _acquia_purge_load('_acquia_purge_capacity');
    $this->capacity = new $class($this);
  }
  return $this->capacity;
}