annotate vendor/symfony/debug/Exception/SilencedErrorContext.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 7a779792577d
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 /*
Chris@0 4 * This file is part of the Symfony package.
Chris@0 5 *
Chris@0 6 * (c) Fabien Potencier <fabien@symfony.com>
Chris@0 7 *
Chris@0 8 * For the full copyright and license information, please view the LICENSE
Chris@0 9 * file that was distributed with this source code.
Chris@0 10 */
Chris@0 11
Chris@0 12 namespace Symfony\Component\Debug\Exception;
Chris@0 13
Chris@0 14 /**
Chris@0 15 * Data Object that represents a Silenced Error.
Chris@0 16 *
Chris@0 17 * @author Grégoire Pineau <lyrixx@lyrixx.info>
Chris@0 18 */
Chris@0 19 class SilencedErrorContext implements \JsonSerializable
Chris@0 20 {
Chris@0 21 private $severity;
Chris@0 22 private $file;
Chris@0 23 private $line;
Chris@0 24
Chris@0 25 public function __construct($severity, $file, $line)
Chris@0 26 {
Chris@0 27 $this->severity = $severity;
Chris@0 28 $this->file = $file;
Chris@0 29 $this->line = $line;
Chris@0 30 }
Chris@0 31
Chris@0 32 public function getSeverity()
Chris@0 33 {
Chris@0 34 return $this->severity;
Chris@0 35 }
Chris@0 36
Chris@0 37 public function getFile()
Chris@0 38 {
Chris@0 39 return $this->file;
Chris@0 40 }
Chris@0 41
Chris@0 42 public function getLine()
Chris@0 43 {
Chris@0 44 return $this->line;
Chris@0 45 }
Chris@0 46
Chris@0 47 public function JsonSerialize()
Chris@0 48 {
Chris@0 49 return array(
Chris@0 50 'severity' => $this->severity,
Chris@0 51 'file' => $this->file,
Chris@0 52 'line' => $this->line,
Chris@0 53 );
Chris@0 54 }
Chris@0 55 }