Context.php 516 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Storage for additional client context.
  4. *
  5. * @package raven
  6. */
  7. class Raven_Context
  8. {
  9. /**
  10. * @var array
  11. */
  12. public $tags;
  13. /**
  14. * @var array
  15. */
  16. public $extra;
  17. /**
  18. * @var array|null
  19. */
  20. public $user;
  21. public function __construct()
  22. {
  23. $this->clear();
  24. }
  25. /**
  26. * Clean up existing context.
  27. */
  28. public function clear()
  29. {
  30. $this->tags = array();
  31. $this->extra = array();
  32. $this->user = null;
  33. }
  34. }