/** * Get body * * @return string */ public function getBody() { if (self::STORAGE_S3 == $this->getStorageType()) { $body = $this->getS3() ? $this->getS3()->read($this->generateS3Path()) : null; } else { $body = parent::getBody(); } return $body; }