Menu

## KICKASS_WRAPPER_PHP.php

2023-03-30 jj5 - these are indirections to PHP functions. The main reason for using these is so that we can use them to inject errors during testing... some PHP functions such as is_int(), intval() and round() are called directly and not via these indirections. If you need to be able to inject invalid return values during testing this is the place to make such arrangements to do such things.

2023-03-31 jj5 - NOTE: these wrappers should do as little as possible and just defer entirely to the PHP implementation. One exception is that I like to initialize variables passed by reference to null, this is probably not necessary but it gives me the warm and fuzzies.

2023-03-31 jj5 - NOTE: when defining default variables you should use the same default values as the library functions you are calling use, or just don't provide a default value at all; that's a sensible enough option, you can make the wrapper demand a value from the caller if you want.

2023-04-02 jj5 - NOTE: the only assumption this trait makes about its environment is that a notify() method has been defined to notify exceptions. After exceptions are notified they are rethrown.

##### Tags

link
  https://github.com/jj5/kickass-crypto

### Interfaces, Classes, Traits and Enums

KICKASS_WRAPPER_PHP
  2023-04-07 jj5 - thin wrappers around PHP functions.

## Search results