4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Debug\Exception;
15 * Data Object that represents a Silenced Error.
17 * @author Grégoire Pineau <lyrixx@lyrixx.info>
19 class SilencedErrorContext implements \JsonSerializable
28 public function __construct($severity, $file, $line, array $trace = array(), $count = 1)
30 $this->severity = $severity;
33 $this->trace = $trace;
34 $this->count = $count;
37 public function getSeverity()
39 return $this->severity;
42 public function getFile()
47 public function getLine()
52 public function getTrace()
57 public function JsonSerialize()
60 'severity' => $this->severity,
61 'file' => $this->file,
62 'line' => $this->line,
63 'trace' => $this->trace,
64 'count' => $this->count,