| Total Complexity | 5 |
| Total Lines | 74 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class SchemaDiffFactory |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var null|string |
||
| 17 | */ |
||
| 18 | private $tableName; |
||
| 19 | /** |
||
| 20 | * @var SchemaDiff |
||
| 21 | */ |
||
| 22 | private $schemaDiff; |
||
| 23 | /** |
||
| 24 | * @var Comparator |
||
| 25 | */ |
||
| 26 | private $comparator; |
||
| 27 | /** |
||
| 28 | * @var Connection |
||
| 29 | */ |
||
| 30 | private $connection; |
||
| 31 | /** |
||
| 32 | * @var Schema |
||
| 33 | */ |
||
| 34 | private $schema; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * SchemaDiffFactory constructor. |
||
| 38 | * |
||
| 39 | * @param SchemaDiff $schemaDiff |
||
| 40 | * @param Comparator $comparator |
||
| 41 | * @param Connection $connection |
||
| 42 | * @param Schema $schema |
||
| 43 | */ |
||
| 44 | public function __construct( |
||
| 45 | SchemaDiff $schemaDiff, |
||
| 46 | Comparator $comparator, |
||
| 47 | Connection $connection, |
||
| 48 | Schema $schema |
||
| 49 | ) { |
||
| 50 | 1 | $this->schemaDiff = $schemaDiff; |
|
| 51 | 1 | $this->comparator = $comparator; |
|
| 52 | 1 | $this->connection = $connection; |
|
| 53 | 1 | $this->schema = $schema; |
|
| 54 | 1 | } |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $tableName |
||
| 58 | * @return $this |
||
| 59 | */ |
||
| 60 | public function setTableName(string $tableName) |
||
| 61 | { |
||
| 62 | 1 | $this->tableName = $tableName; |
|
| 63 | |||
| 64 | 1 | return $this; |
|
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return SchemaDiff |
||
| 69 | * @throws \Exception |
||
| 70 | */ |
||
| 71 | public function getSchemaDiff() |
||
| 87 | } |
||
| 88 | } |
||
| 89 |