Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

Application modulaire fonctionnelle !

Emmanuel ROY authored on 12/08/2019 15:10:25
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,67 +0,0 @@
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
-    public $count = 1;
22
-
23
-    private $severity;
24
-    private $file;
25
-    private $line;
26
-    private $trace;
27
-
28
-    public function __construct(int $severity, string $file, int $line, array $trace = [], int $count = 1)
29
-    {
30
-        $this->severity = $severity;
31
-        $this->file = $file;
32
-        $this->line = $line;
33
-        $this->trace = $trace;
34
-        $this->count = $count;
35
-    }
36
-
37
-    public function getSeverity()
38
-    {
39
-        return $this->severity;
40
-    }
41
-
42
-    public function getFile()
43
-    {
44
-        return $this->file;
45
-    }
46
-
47
-    public function getLine()
48
-    {
49
-        return $this->line;
50
-    }
51
-
52
-    public function getTrace()
53
-    {
54
-        return $this->trace;
55
-    }
56
-
57
-    public function JsonSerialize()
58
-    {
59
-        return [
60
-            'severity' => $this->severity,
61
-            'file' => $this->file,
62
-            'line' => $this->line,
63
-            'trace' => $this->trace,
64
-            'count' => $this->count,
65
-        ];
66
-    }
67
-}
Browse code

initial commit

Emmanuel ROY authored on 09/08/2019 08:39:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,67 @@
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
+    public $count = 1;
22
+
23
+    private $severity;
24
+    private $file;
25
+    private $line;
26
+    private $trace;
27
+
28
+    public function __construct(int $severity, string $file, int $line, array $trace = [], int $count = 1)
29
+    {
30
+        $this->severity = $severity;
31
+        $this->file = $file;
32
+        $this->line = $line;
33
+        $this->trace = $trace;
34
+        $this->count = $count;
35
+    }
36
+
37
+    public function getSeverity()
38
+    {
39
+        return $this->severity;
40
+    }
41
+
42
+    public function getFile()
43
+    {
44
+        return $this->file;
45
+    }
46
+
47
+    public function getLine()
48
+    {
49
+        return $this->line;
50
+    }
51
+
52
+    public function getTrace()
53
+    {
54
+        return $this->trace;
55
+    }
56
+
57
+    public function JsonSerialize()
58
+    {
59
+        return [
60
+            'severity' => $this->severity,
61
+            'file' => $this->file,
62
+            'line' => $this->line,
63
+            'trace' => $this->trace,
64
+            'count' => $this->count,
65
+        ];
66
+    }
67
+}