Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
letsencrypt
/
vendor
/
aws
/
aws-sdk-php
/
src
/
EndpointV2
/
Rule
/
File Content:
AbstractRule.php
<?php namespace PleskLetsEncrypt\Aws\EndpointV2\Rule; use PleskLetsEncrypt\Aws\EndpointV2\Ruleset\RulesetStandardLibrary; /** * A rule within a rule set. All rules contain a conditions property, * which can be empty, and documentation about the rule. */ abstract class AbstractRule { private $conditions; private $documentation; public function __construct(array $definition) { $this->conditions = $definition['conditions']; $this->documentation = isset($definition['documentation']) ? $definition['documentation'] : null; } /** * @return array */ public function getConditions() { return $this->conditions; } /** * @return mixed */ public function getDocumentation() { return $this->documentation; } /** * Determines if all conditions for a given rule are met. * * @return boolean */ protected function evaluateConditions(array &$inputParameters, RulesetStandardLibrary $standardLibrary) { foreach ($this->getConditions() as $condition) { $result = $standardLibrary->callFunction($condition, $inputParameters); if (\is_null($result) || $result === \false) { return \false; } } return \true; } public abstract function evaluate(array $inputParameters, RulesetStandardLibrary $standardLibrary); }
Edit
Rename
Chmod
Delete
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