/**
  * Document constructor.
  *
  * @param Corpus          $corpus
  * @param ConfigInterface $config
  * @param bool            $name
  * @param bool|string     $method
  */
 public function __construct(Corpus $corpus, ConfigInterface $config, $name = false, $method = self::DEFAULT_REQUEST_METHOD)
 {
     $this->config = $config;
     $this->corpus = $corpus;
     $this->name = $name;
     $this->method = $method;
     parent::__construct($this->config, $this->corpus->getClient(), $this->corpus->getAccountId());
 }
 /**
  * Corpus constructor.
  *
  * @param bool|string                 $name
  * @param ClientInterface|null|string $method
  * @param ConfigInterface|null        $config
  * @param ClientInterface|null        $client
  * @param bool|string                 $accountId
  */
 public function __construct($name = false, $method = self::DEFAULT_REQUEST_METHOD, ConfigInterface $config = null, ClientInterface $client = null, $accountId = false)
 {
     $this->name = $name;
     $this->method = $method;
     parent::__construct($config, $client, $accountId);
 }