| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function render() |
||
| 51 | { |
||
| 52 | /** @var Notification $notification */ |
||
| 53 | $notification = $this->arguments['notification']; |
||
| 54 | |||
| 55 | if (!$notification instanceof Editable |
||
| 56 | || !$notification->isEditable() |
||
| 57 | ) { |
||
| 58 | return ''; |
||
| 59 | } |
||
| 60 | |||
| 61 | $this->tag->addAttribute('href', $notification->getEditionUri()); |
||
| 62 | $this->tag->setContent($this->renderChildren()); |
||
| 63 | |||
| 64 | return $this->tag->render(); |
||
| 65 | } |
||
| 67 |