Esempio n. 1
0
 /**
  * {@inheritdoc}
  * @see Scalr\Service\Aws\S3.AbstractS3DataType::throwExceptionIfNotInitialized()
  */
 protected function throwExceptionIfNotInitialized()
 {
     parent::throwExceptionIfNotInitialized();
     if ($this->bucketName === null) {
         throw new S3Exception(sprintf('bucketName property has not been initialized for the %s yet.', get_class($this)));
     }
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  * @see Scalr\Service\Aws\S3.AbstractS3DataType::throwExceptionIfNotInitialized()
  */
 protected function throwExceptionIfNotInitialized()
 {
     parent::throwExceptionIfNotInitialized();
     if ($this->objectName === null) {
         throw new S3Exception(sprintf('Property objectName has not been initialized yet for the %s', get_class($this)));
     }
     if ($this->getBucketName() === null) {
         throw new S3Exception(sprintf('Property bucketName has not been initialized yet for the %s', get_class($this)));
     }
 }