| 1 | <?php |
||
| 14 | class BaseGenerator |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \Rougin\Describe\Describe |
||
| 18 | */ |
||
| 19 | protected $describe; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $data = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param \Rougin\Describe\Describe $describe |
||
| 28 | * @param array $data |
||
| 29 | */ |
||
| 30 | 18 | public function __construct(Describe $describe, array $data) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Transforms the field into the template. |
||
| 38 | * |
||
| 39 | * @param string $field |
||
| 40 | * @param string $type |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | 12 | protected function transformField($field, $type) |
|
| 59 | } |
||
| 60 |