Skip to content

Commit

Permalink
feat: create parser service blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftaufiq committed Apr 11, 2022
1 parent 6b2012d commit 54cc96e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Services/ParserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,25 @@

class ParserService
{
public $autoloadParser;

public $coreParser;

public function __construct(
$autoloadParser,
$coreParser
) {
$this->autoloadParser = $autoloadParser;
$this->coreParser = $coreParser;
}

public function parseAutoload(string $content)
{
$this->autoloadParser->parse($content);
}

public function parseCore(string $content)
{
$this->coreParser->parse($content);
}
}

0 comments on commit 54cc96e

Please sign in to comment.