You are here

public static function VerificationResult::success in Commerce Core 8.2

Constructs a success result.

Parameters

int $timestamp: The timestamp.

array $data: The data. Optional.

Return value

static

3 calls to VerificationResult::success()
EuropeanUnionVat::doVerify in modules/tax/src/Plugin/Commerce/TaxNumberType/EuropeanUnionVat.php
Performs the tax number verification.
EuropeanUnionVatTest::testRenderVerificationResult in modules/tax/tests/src/Kernel/Plugin/Commerce/TaxNumberType/EuropeanUnionVatTest.php
@covers ::renderVerificationResult
SerbianVat::doVerify in modules/tax/tests/modules/commerce_tax_test/src/Plugin/Commerce/TaxNumberType/SerbianVat.php
Performs the tax number verification.

File

modules/tax/src/Plugin/Commerce/TaxNumberType/VerificationResult.php, line 66

Class

VerificationResult
Represents a tax number verification result.

Namespace

Drupal\commerce_tax\Plugin\Commerce\TaxNumberType

Code

public static function success(int $timestamp, array $data = []) : VerificationResult {
  return new static(self::STATE_SUCCESS, $timestamp, $data);
}