| 1 | <?php |
||
| 14 | class Fillet |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Configuration for Fillet |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $config; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Full path to the file we need to work against |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $inputFile; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Parser that we will be using |
||
| 30 | * @var ParserInterface |
||
| 31 | */ |
||
| 32 | protected $parser; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Create an instance of Fillet |
||
| 36 | * |
||
| 37 | * @param ParserInterface $parser Parser to use |
||
| 38 | * @param string $inputFile File to parse |
||
| 39 | * @param array $config Fillet configuration |
||
| 40 | */ |
||
| 41 | public function __construct(ParserInterface $parser, $inputFile, $config) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Calls the parser and generates the files |
||
| 50 | * |
||
| 51 | * @throws \Exception |
||
| 52 | */ |
||
| 53 | public function parse() |
||
| 63 | } |