コード例 #1
0
 /**
  * {@inheritdoc}
  * @throws InvalidArgumentException if the resource ID format is invalid
  */
 public function setResourceId($resourceId)
 {
     if (!strpos($resourceId, '/')) {
         throw new InvalidArgumentException('The resource ID must be in the form of DistributionId/InvalidationId');
     }
     return parent::setResourceId($resourceId);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  * @throws InvalidArgumentException if the resource ID format is invalid
  */
 public function setResourceId($resourceId)
 {
     if (!strpos($resourceId, '/')) {
         throw new InvalidArgumentException('The resource ID must be in the form of bucket/key');
     }
     parent::setResourceId($resourceId);
     return $this;
 }