/** * Implements \ArrayAccess::offsetGet(). * * @param mixed $offset * @return NULL|\Acquia\Platform\Cloud\Hosting\Site\SiteInterface */ public function offsetGet($offset) { if (isset($this->sites[$offset])) { if (!is_object($this->sites[$offset])) { $this->sites[$offset] = $this->dataSource->getSite($this->sites[$offset]); } return $this->sites[$offset]; } return NULL; }