protected function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->volumeId === null) { throw new Ec2Exception(sprintf('volumeId has not been provided for the "%s" yet.', get_class($this))); } }