public function setAccountTo($accountTo, $bankCode = NULL) { $accountObject = Utils\Strings::createAccount($accountTo, $bankCode); $this->accountTo = $accountObject->getAccount(); $this->bankCode = $accountObject->getBankCode(); return $this; }
protected function checkValue($value, $type) { switch ($type) { case 'datetime': return Utils\Strings::createFromFormat($value, $this->dateFormat); case 'float': return floatval($value); case 'string': return trim($value); case 'int': // on 32bit platform works inval() bad with variable symbol if (self::is32bitOS()) { return trim($value); } return intval($value); case 'string|null': return trim($value) ?: NULL; } return $value; }
/** * @param string $str * @return self */ public function setRemittanceInfo4($str) { $this->remittanceInfo4 = Utils\Strings::substr($str, 35); return $this; }
public function createInfo($data, $dateFormat) { $data->dateStart = Utils\Strings::createFromFormat($data->dateStart, $dateFormat); $data->dateEnd = Utils\Strings::createFromFormat($data->dateEnd, $dateFormat); return $data; }
/** * Set breakpoint to date. * @param mixed $date * @return void */ public function setLastDate($date) { $this->download('set-last-date/%s/%s/', Utils\Strings::date($date)); }
/** * @param string $str * @return self */ public function setMyComment($str) { $this->comment = Utils\Strings::substr($str, 255); return $this; }