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