1 | <?php |
---|
2 | namespace Sekap\Message\Outgoing\Composer\Custom; |
---|
3 | |
---|
4 | use Sekap\Tool\Log; |
---|
5 | use Sekap\Exception\Composer as ComposerException; |
---|
6 | |
---|
7 | /** |
---|
8 | * Ping |
---|
9 | * |
---|
10 | * @uses Custom |
---|
11 | * @uses \Sekap\Interfaces\Composer |
---|
12 | * @final |
---|
13 | * @author Tomasz Świenty |
---|
14 | * @version 0.1 |
---|
15 | * @copyright Copyright (c) BetaSoft |
---|
16 | */ |
---|
17 | final class Ping extends Custom implements \Sekap\Interfaces\Composer { |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | public function compose($message = NULL, $params = array(), &$errorMessage = NULL) { |
---|
22 | |
---|
23 | $message = $this->composer->getMessage(); |
---|
24 | |
---|
25 | $nodeList = $message->getElementsByTagName('recipient'); |
---|
26 | $recipientNode = $nodeList->item(0); |
---|
27 | |
---|
28 | $recipientNode->setAttribute('application', 'HELLO application'); |
---|
29 | $recipientNode->setAttribute('url', 'HELLO url'); |
---|
30 | |
---|
31 | } |
---|
32 | |
---|
33 | } |
---|
34 | |
---|
35 | ?> |
---|