code: public function setUri($uri)
      {
          if (!empty($uri) && !is_file($uri)) {
              throw new \Exception(sprintf('File %s not found.', $uri));
          }
          $this->uri = $uri;
          return $this;
      }
docs: Set the URI File
  @param $uri
  @return $this
  @throws Exception