| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Generator |
||
| 13 | { |
||
| 14 | use Generator\HasStrategy; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Generator constructor. |
||
| 18 | * @param null|string|AbstractStrategy $strategy |
||
| 19 | */ |
||
| 20 | public function __construct($strategy = null) |
||
| 21 | { |
||
| 22 | $strategy = (empty($strategy)) ? ByTICStrategy::class : $strategy; |
||
| 23 | $this->setStrategy($strategy); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $name |
||
| 28 | * @param $type |
||
| 29 | * @return Name |
||
| 30 | */ |
||
| 31 | public function from($name, $type): Name |
||
| 34 | } |
||
| 35 | } |
||
| 36 |