Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Debug\Exception; Chris@0: Chris@0: /** Chris@0: * Data Object that represents a Silenced Error. Chris@0: * Chris@0: * @author Grégoire Pineau Chris@0: */ Chris@0: class SilencedErrorContext implements \JsonSerializable Chris@0: { Chris@0: private $severity; Chris@0: private $file; Chris@0: private $line; Chris@0: Chris@0: public function __construct($severity, $file, $line) Chris@0: { Chris@0: $this->severity = $severity; Chris@0: $this->file = $file; Chris@0: $this->line = $line; Chris@0: } Chris@0: Chris@0: public function getSeverity() Chris@0: { Chris@0: return $this->severity; Chris@0: } Chris@0: Chris@0: public function getFile() Chris@0: { Chris@0: return $this->file; Chris@0: } Chris@0: Chris@0: public function getLine() Chris@0: { Chris@0: return $this->line; Chris@0: } Chris@0: Chris@0: public function JsonSerialize() Chris@0: { Chris@0: return array( Chris@0: 'severity' => $this->severity, Chris@0: 'file' => $this->file, Chris@0: 'line' => $this->line, Chris@0: ); Chris@0: } Chris@0: }