Submit
Path:
~
/
/
proc
/
self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
letsencrypt
/
vendor
/
aws
/
aws-sdk-php
/
src
/
EndpointV2
/
Rule
/
File Content:
ErrorRule.php
<?php namespace PleskLetsEncrypt\Aws\EndpointV2\Rule; use PleskLetsEncrypt\Aws\EndpointV2\Ruleset\RulesetStandardLibrary; use PleskLetsEncrypt\Aws\Exception\UnresolvedEndpointException; class ErrorRule extends AbstractRule { /** @var array */ private $error; public function __construct($definition) { parent::__construct($definition); $this->error = $definition['error']; } /** * @return array */ public function getError() { return $this->error; } /** * If an error rule's conditions are met, raise an * UnresolvedEndpointError containing the fully resolved error string. * * @return null * @throws UnresolvedEndpointException */ public function evaluate(array $inputParameters, RulesetStandardLibrary $standardLibrary) { if ($this->evaluateConditions($inputParameters, $standardLibrary)) { $message = $standardLibrary->resolveValue($this->error, $inputParameters); throw new UnresolvedEndpointException($message); } return \false; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
AbstractRule.php
1422 bytes
0644
EndpointRule.php
3303 bytes
0644
ErrorRule.php
1104 bytes
0644
RuleCreator.php
635 bytes
0644
TreeRule.php
1580 bytes
0644
N4ST4R_ID | Naxtarrr