░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/lib/aws-sdk/src/Crypto/Polyfill
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: NeedsTrait.php
<?php namespace Aws\Crypto\Polyfill; use Aws\Exception\CryptoPolyfillException; /** * Trait NeedsTrait */ trait NeedsTrait { /** * Preconditions, postconditions, and loop invariants are very * useful for safe programing. They also document the specifications. * This function is to help simplify the semantic burden of parsing * these constructions. * * Instead of constructions like * if (!(GOOD CONDITION)) { * throw new \Exception('condition not true'); * } * * you can write: * needs(GOOD CONDITION, 'condition not true'); * @param $condition * @param $errorMessage * @param null $exceptionClass */ public static function needs($condition, $errorMessage, $exceptionClass = null) { if (!$condition) { if (!$exceptionClass) { $exceptionClass = CryptoPolyfillException::class; } throw new $exceptionClass($errorMessage); } } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 AesGcm.php
PHP
6.8 KB
2026-02-11 01:44
EDIT
📄 ByteArray.php
PHP
6.8 KB
2026-02-11 01:44
EDIT
📄 Gmac.php
PHP
6.2 KB
2026-02-11 01:44
EDIT
📄 Key.php
PHP
1.7 KB
2026-02-11 01:44
EDIT
📄 NeedsTrait.php
PHP
1017 B
2026-02-11 01:44
EDIT