modifierCode; } public function setModifierCode($modifierCode) { $this->modifierCode = $modifierCode; return $this; } public function getRoutingNumber() { return $this->routingNumber; } public function setRoutingNumber($routingNumber) { $this->routingNumber = $routingNumber; return $this; } public function getAccountNumber() { return $this->accountNumber; } public function setAccountNumber($accountNumber) { $this->accountNumber = $accountNumber; return $this; } public function getCheckNumber() { return $this->checkNumber; } public function setCheckNumber($checkNumber) { $this->checkNumber = $checkNumber; return $this; } public function getAmount() { return $this->amount; } public function setAmount($amount) { $this->amount = $amount; return $this; } public function getInvoiceNumber() { return $this->invoiceNumber; } public function setInvoiceNumber($invoiceNumber) { $this->invoiceNumber = $invoiceNumber; return $this; } public function getClerkId() { return $this->clerkId; } public function setClerkId($clerkId) { $this->clerkId = $clerkId; return $this; } public function getItemNumber() { return $this->itemNumber; } public function setItemNumber($itemNumber) { $this->itemNumber = $itemNumber; return $this; } public function getTransactionOptions() { return $this->transactionOptions; } public function setTransactionOptions($transactionOptions) { $this->transactionOptions = $transactionOptions; return $this; } public function getDriverLicense() { return $this->driverLicense; } public function setDriverLicense($driverLicense) { $this->driverLicense = $driverLicense; return $this; } public function getState() { return $this->state; } public function setState($state) { $this->state = $state; return $this; } public function getDataOfBirth() { return $this->dataOfBirth; } public function setDataOfBirth($dataOfBirth) { $this->dataOfBirth = $dataOfBirth; return $this; } public function getPhoneNumber() { return $this->phoneNumber; } public function setPhoneNumber($phoneNumber) { $this->phoneNumber = $phoneNumber; return $this; } public function toArray() { return [ 20, $this->getType(), $this->getModifierCode(), date('YmdHis', $this->getLocalTransactionTime()), null, $this->getTid(), $this->renderXmlData(), null, $this->getRoutingNumber(), $this->getAccountNumber(), $this->getCheckNumber(), $this->getAmount(), $this->getInvoiceNumber(), $this->getClerkId(), null, null, $this->getItemNumber(), $this->getTransactionOptions(), $this->getDriverLicense(), $this->getState(), $this->getDataOfBirth(), preg_replace('/[^\d]/', '', $this->getPhoneNumber()), ]; } public function __toString() { $clone = clone $this; $clone->setAccountNumber($this->mask($clone->getAccountNumber(), null, 4)); return implode(self::STRING_SEPARATOR, $clone->toArray()); } }