関数
State::getDisplayText()
Returns human-readable text representation of current state
戻り値 戻り値
ファイル: src/Models/Refund/State.php
public function getDisplayText() { $text = ''; switch ($this->state) { case self::REFUND_INITIATED: $text = __('Refund Initiated', 'wcexaap'); break; case self::REFUNDED: $text = __('Refunded', 'wcexaap'); break; case self::DECLINED: $text = __('Refund Declined', 'wcexaap'); break; } return $text; }