File tree Expand file tree Collapse file tree 4 files changed +256
-202
lines changed Expand file tree Collapse file tree 4 files changed +256
-202
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rtckit/sip" ,
3
3
"description" : " Parser/Renderer for SIP protocol written in PHP" ,
4
- "version" : " 0.6.0 " ,
4
+ "version" : " 0.6.1 " ,
5
5
"type" : " library" ,
6
6
"keywords" : [
7
7
" sip" ,
Original file line number Diff line number Diff line change 6
6
7
7
namespace RTCKit \SIP \Exception ;
8
8
9
+ use RTCKit \SIP \Message ;
9
10
use DomainException ;
10
11
use Throwable ;
11
12
14
15
*/
15
16
class SIPException extends DomainException implements Throwable
16
17
{
18
+ /** @var ?Message Partial parsed message, before the exception was encountered */
19
+ private ?Message $ stub = null ;
20
+
21
+ /**
22
+ * Assigns a message stub to the current exception
23
+ *
24
+ * @param Message $stub Partial message
25
+ */
26
+ public function setStub (Message $ stub ): void
27
+ {
28
+ $ this ->stub = $ stub ;
29
+ }
30
+
31
+ /**
32
+ * Retrieve's exception's stub, if any
33
+ *
34
+ * @return ?Message Partial message
35
+ */
36
+ public function getStub (): ?Message
37
+ {
38
+ return $ this ->stub ;
39
+ }
17
40
}
You can’t perform that action at this time.
0 commit comments