/** * Set a new default ratio for passing a vote. * Only available to Admin. * @param float $ratio In range [0,1] or -1 to disable votes * @param bool $multicall * @return bool * @throws InvalidArgumentException */ function setCallVoteRatio($ratio, $multicall = false) { if (!Structures\VoteRatio::isRatio($ratio)) { throw new InvalidArgumentException('ratio = ' . print_r($ratio, true)); } return $this->execute(ucfirst(__FUNCTION__), array($ratio), $multicall); }