関数
State::getErrorResponseFromClosedState()
Returns GenericError
instance created from a Closed
state.
説明 説明
This method returns an UNKNOWN_ERROR
GenericError
instance if the state is not Closed
.
ファイル: src/Models/ChargePermission/State.php
public function getErrorResponseFromClosedState() { $error = $this->getErrorResponse(self::UNKNOWN_ERROR); if ($this->state !== self::CLOSED) { return $error; } return $this->getErrorResponse($this->reasonCode, [$this->reasonDescription]); }