/** * @param int $delay * * @return string * * @throws UnsupportedMethodException */ public function animate($delay = 20) { if (!$this->resource instanceof ImageAnimatableInterface) { throw new UnsupportedMethodException("This method is not supported by the ImageResource in use."); } return $this->resource->animate($this->getFrames(), $delay); }