generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Envelope.php
41 lines (34 loc) · 892 Bytes
/
Envelope.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Smartprax\Medidoc\XML\Nodes;
use Ramsey\Uuid\Uuid;
use Smartprax\Medidoc\Methods\AbstractMethod;
use Smartprax\Medidoc\XML\Nodes\Envelope\Action;
use Smartprax\Medidoc\XML\Nodes\Envelope\MessageID;
use Smartprax\Medidoc\XML\Nodes\Envelope\ReplyTo;
use Smartprax\Medidoc\XML\Nodes\Envelope\Security;
use Smartprax\Medidoc\XML\Nodes\Envelope\To;
use Smartprax\Medidoc\XML\XML_NS;
class Envelope extends Node
{
public function __construct(
protected AbstractMethod $method
) {}
public function namespace(): ?XML_NS
{
return XML_NS::envelope;
}
public function attributes(): array
{
return [];
}
public function value(): array
{
return [
new Action($this->method),
new MessageID(),
new ReplyTo(),
new To(),
new Security()
];
}
}