transferInterval, ['Daily', 'Weekly', 'Monthly'], 'transfer_interval'); if ($this->transferDay < 0) { throw new \InvalidArgumentException('transfer_day deve ser maior ou igual a zero.'); } } public function toArray(): array { return $this->filterFilledRecursive([ 'transfer_enabled' => $this->transferEnabled, 'transfer_interval' => $this->transferInterval, 'transfer_day' => $this->transferDay, ]); } }