1<?php
2/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
3
4namespace Icinga\File\Ini\Dom;
5
6/**
7 * A single comment-line in an INI file
8 */
9class Comment
10{
11    /**
12     * The comment text
13     *
14     * @var string
15     */
16    protected $content;
17
18    /**
19     * Set the text content of this comment
20     *
21     * @param $content
22     */
23    public function setContent($content)
24    {
25        $this->content = $content;
26    }
27
28    /**
29     * Render this comment into INI markup
30     *
31     * @return string
32     */
33    public function render()
34    {
35        return ';' . $this->content;
36    }
37}
38