Skip to content

Commit 14cff7d

Browse files
authored
Merge pull request #2 from barkdoll/chainable-methods
Chainable setter methods
2 parents b483de2 + 8a8bd26 commit 14cff7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PHPInfo.php

+4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,17 @@ public function setText($phpInfo) {
2323
'mode' => 'text',
2424
'data' => $phpInfo
2525
);
26+
27+
return $this;
2628
}
2729

2830
public function setHTML($phpInfo) {
2931
$this->_phpInfo = array(
3032
'mode' => 'html',
3133
'data' => $phpInfo
3234
);
35+
36+
return $this;
3337
}
3438

3539
public function get() {

0 commit comments

Comments
 (0)