app\models\PaymentMethod::getBankNameAttribute PHP Method

getBankNameAttribute() public method

public getBankNameAttribute ( $bank_name ) : null
$bank_name
return null
    public function getBankNameAttribute($bank_name)
    {
        if ($bank_name) {
            return $bank_name;
        }
        $bankData = $this->bank_data;
        return $bankData ? $bankData->name : null;
    }