| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ComplexObjectGeneratorFactory implements FakeDataGeneratorFactoryInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var int|null |
||
| 13 | */ |
||
| 14 | private $depth; |
||
| 15 | /** |
||
| 16 | * @var bool |
||
| 17 | */ |
||
| 18 | private $toArray; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * ComplexObjectGenerator constructor. |
||
| 22 | * @param int|null $depth |
||
| 23 | * @param bool $toArray |
||
| 24 | */ |
||
| 25 | public function __construct(int $depth = null, bool $toArray = true) |
||
| 26 | { |
||
| 27 | $this->depth = $depth; |
||
| 28 | $this->toArray = $toArray; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param Table $table |
||
| 33 | * @param Column $column |
||
| 34 | * @param SchemaHelper $schemaHelper |
||
| 35 | * @return FakeDataGeneratorInterface |
||
| 36 | */ |
||
| 37 | public function create(Table $table, Column $column, SchemaHelper $schemaHelper): FakeDataGeneratorInterface |
||
| 41 | } |
||
| 42 | } |
||
| 43 |