12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
-
- /**
- * Base class for data processing.
- *
- * @package raven
- */
- abstract class Raven_Processor
- {
- /**
- * This constant defines the mask string used to strip sensitive information.
- */
- const STRING_MASK = '********';
-
- /**
- * @var Raven_Client The Raven client
- */
- protected $client;
-
- /**
- * Class constructor.
- *
- * @param Raven_Client $client The Raven client
- */
- public function __construct(Raven_Client $client)
- {
- $this->client = $client;
- }
-
- /**
- * Override the default processor options
- *
- * @param array $options Associative array of processor options
- */
- public function setProcessorOptions(array $options)
- {
- }
-
- /**
- * Process and sanitize data, modifying the existing value if necessary.
- *
- * @param array $data Array of log data
- */
- abstract public function process(&$data);
- }
|