/** * @param int $status * @param int $accountId * * @return bool|int */ protected function addAccountHistory($status, $accountId) { $historyInsertValues = ['newsletter_account_id' => $accountId, 'date' => $this->date->toSQL(), 'action' => $status]; return $this->accountHistoryRepository->insert($historyInsertValues); }
/** * @param string $value * @return string */ public function doEscape($value) { return $this->date->toSQL($value); }