api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VariableStore.php 408B

123456789101112131415161718192021
  1. <?php
  2. namespace Tqdev\PhpCrudApi\Middleware\Communication;
  3. class VariableStore
  4. {
  5. public static $values = array();
  6. public static function get(string $key)
  7. {
  8. if (isset(self::$values[$key])) {
  9. return self::$values[$key];
  10. }
  11. return null;
  12. }
  13. public static function set(string $key, /* object */ $value)
  14. {
  15. self::$values[$key] = $value;
  16. }
  17. }