Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 11 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function execute() |
||
40 | { |
||
41 | $node = $this->getSocket(self::SOCKET_DATA)->getNode(0); |
||
42 | if ($node === null || $node->getValue() === null) { |
||
43 | throw new \InvalidArgumentException('There is no data set.'); |
||
44 | } |
||
45 | |||
46 | echo $node->getValue(); |
||
47 | |||
48 | $this->activate(self::SOCKET_OUTPUT); |
||
49 | } |
||
50 | } |
||
51 |