関数
State::getDisplayText()
Returns human-readable text representation of current state
戻り値 戻り値
ファイル: src/Models/ChargePermission/State.php
public function getDisplayText() { $text = ''; switch ($this->state) { case self::CHARGEABLE: $text = __('Chargeable', 'wcexaap'); break; case self::NON_CHARGEABLE: $text = __('Non-Chargeable', 'wcexaap'); break; case self::CLOSED: $text = __('Closed', 'wcexaap'); break; } return $text; }