Skip to content

Commit 014d0dc

Browse files
committed
PHPDoc
1 parent afdcc47 commit 014d0dc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/HCLParser.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,29 @@
22

33
namespace DivineOmega\HCLParser;
44

5+
/**
6+
* Class HCLParser
7+
* @package DivineOmega\HCLParser
8+
*/
59
class HCLParser
610
{
11+
/**
12+
* @var
13+
*/
714
private $hcl;
815

16+
/**
17+
* HCLParser constructor.
18+
* @param $hcl
19+
*/
920
public function __construct($hcl)
1021
{
1122
$this->hcl = $hcl;
1223
}
1324

25+
/**
26+
* @return string
27+
*/
1428
private function getJSONString()
1529
{
1630
$command = __DIR__.'/../bin/json2hcl_v0.0.6_linux_amd64 --reverse <<\'EOF\''.PHP_EOL.$this->hcl.PHP_EOL.'EOF';
@@ -20,6 +34,9 @@ private function getJSONString()
2034
return implode(PHP_EOL, $lines);
2135
}
2236

37+
/**
38+
* @return mixed
39+
*/
2340
public function parse()
2441
{
2542
return json_decode($this->getJSONString());

0 commit comments

Comments
 (0)