PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.0.1
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.0.1
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Libraries / Sabberworm / CSS / src / Comment / Comment.php

Comment.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.0.1, at back/Libraries/Sabberworm/CSS/src/Comment/Comment.php

72 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Sabberworm\CSS\Comment;
4
5 use Sabberworm\CSS\OutputFormat;
6 use Sabberworm\CSS\Renderable;
7
8 class Comment implements Renderable
9 {
10 /**
11 * @var int
12 */
13 protected $iLineNo;
14
15 /**
16 * @var string
17 */
18 protected $sComment;
19
20 /**
21 * @param string $sComment
22 * @param int $iLineNo
23 */
24 public function __construct($sComment = '', $iLineNo = 0)
25 {
26 $this->sComment = $sComment;
27 $this->iLineNo = $iLineNo;
28 }
29
30 /**
31 * @return string
32 */
33 public function getComment()
34 {
35 return $this->sComment;
36 }
37
38 /**
39 * @return int
40 */
41 public function getLineNo()
42 {
43 return $this->iLineNo;
44 }
45
46 /**
47 * @param string $sComment
48 *
49 * @return void
50 */
51 public function setComment($sComment)
52 {
53 $this->sComment = $sComment;
54 }
55
56 /**
57 * @return string
58 */
59 public function __toString()
60 {
61 return $this->render(new OutputFormat());
62 }
63
64 /**
65 * @return string
66 */
67 public function render(OutputFormat $oOutputFormat)
68 {
69 return '/*' . $this->sComment . '*/';
70 }
71 }
72