REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.06 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/Crypto/Polyfill/NeedsTrait.php
Text
Base64
<?php namespace Aws\Crypto\Polyfill; use Aws\Exception\CryptoPolyfillException; /** * Trait NeedsTrait * @package Aws\Crypto\Polyfill */ 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); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AesGcm.php
7.06 KB
lrwxrwxr-x
2024-06-18 20:10:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ByteArray.php
7.09 KB
lrwxrwxr-x
2024-06-18 20:10:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Gmac.php
6.40 KB
lrwxrwxr-x
2024-06-18 20:10:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Key.php
1.80 KB
lrwxrwxr-x
2024-06-18 20:10:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NeedsTrait.php
1.06 KB
lrwxrwxr-x
2024-06-18 20:10:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).