関数
State::getDisplayText()
Returns human-readable text representation of current state
戻り値 戻り値
ファイル: src/Models/Charge/State.php
public function getDisplayText() { $text = ''; switch ($this->state) { case self::AUTHORIZATION_INITIATED: $text = __('Authorization Initiated', 'wcexaap'); break; case self::AUTHORIZED: $text = __('Authorized', 'wcexaap'); break; case self::CAPTURE_INITIATED: $text = __('Capture Initiated', 'wcexaap'); break; case self::CAPTURED: $text = __('Captured', 'wcexaap'); break; case self::CANCELED: $text = __('Canceled', 'wcexaap'); break; case self::DECLINED: $text = __('Declined', 'wcexaap'); break; } return $text; }