/** * {@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); }
/** * {@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; }