final class RecaptchaRule implements ValidationRuleInterface (View source)

Traits

Methods

array|null from JsonFetchTrait
fetchJson(string $url)
array|null
array|null from JsonFetchTrait
postJson(string $url, array $payload)
array|null
array|null from JsonFetchTrait
postForm(string $url, array $payload)
array|null
ClientInterface
ClientInterface
RequestFactoryInterface
RequestFactoryInterface
StreamFactoryInterface
StreamFactoryInterface
__construct(ClientInterface $client, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, RecaptchaEndpointProviderInterface $endpointProvider)
bool
validate(mixed $value, string|null $param, array $data)
bool

Details

fetchJson

protected array|null fetchJson(string $url)

No description

Parameters

string $url

Return Value

array|null

postJson

protected array|null postJson(string $url, array $payload)

No description

Parameters

string $url
array $payload

Return Value

array|null

postForm

protected array|null postForm(string $url, array $payload)

No description

Parameters

string $url
array $payload

Return Value

array|null

jsonFetchClient

protected ClientInterface jsonFetchClient()

No description

Return Value

ClientInterface

jsonFetchRequestFactory

protected RequestFactoryInterface jsonFetchRequestFactory()

No description

Return Value

RequestFactoryInterface

jsonFetchStreamFactory

protected StreamFactoryInterface jsonFetchStreamFactory()

No description

Return Value

StreamFactoryInterface

__construct

__construct(ClientInterface $client, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, RecaptchaEndpointProviderInterface $endpointProvider)

No description

Parameters

ClientInterface $client
RequestFactoryInterface $requestFactory
StreamFactoryInterface $streamFactory
RecaptchaEndpointProviderInterface $endpointProvider

validate

bool validate(mixed $value, string|null $param, array $data)

No description

Parameters

mixed $value
string|null $param
array $data

Return Value

bool