diff --git a/composer.lock b/composer.lock index 0e6174f..50977b6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,9 +4,65 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "8ea642bbf65521ad2973364486d2a786", - "content-hash": "7653ac24a9a9356bca454fab39523bda", + "hash": "3f1b57e2028ab68102f8603b3b6de225", + "content-hash": "fae8fea6a519fb670097584c0195d145", "packages": [ + { + "name": "danielstjules/stringy", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/danielstjules/Stringy.git", + "reference": "4749c205db47ee5b32e8d1adf6d9aff8db6caf3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/danielstjules/Stringy/zipball/4749c205db47ee5b32e8d1adf6d9aff8db6caf3b", + "reference": "4749c205db47ee5b32e8d1adf6d9aff8db6caf3b", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Stringy\\": "src/" + }, + "files": [ + "src/Create.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel St. Jules", + "email": "danielst.jules@gmail.com", + "homepage": "http://www.danielstjules.com" + } + ], + "description": "A string manipulation library with multibyte support", + "homepage": "https://github.com/danielstjules/Stringy", + "keywords": [ + "UTF", + "helpers", + "manipulation", + "methods", + "multibyte", + "string", + "utf-8", + "utility", + "utils" + ], + "time": "2015-07-23 00:54:12" + }, { "name": "doctrine/inflector", "version": "v1.1.0", @@ -76,16 +132,16 @@ }, { "name": "illuminate/contracts", - "version": "v5.2.0", + "version": "v5.1.28", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "51b3acf96a12f5a10d767d5f2a534fed6f304235" + "reference": "e2b71fdbeeb3438748dca5f497e205888788a883" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/51b3acf96a12f5a10d767d5f2a534fed6f304235", - "reference": "51b3acf96a12f5a10d767d5f2a534fed6f304235", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/e2b71fdbeeb3438748dca5f497e205888788a883", + "reference": "e2b71fdbeeb3438748dca5f497e205888788a883", "shasum": "" }, "require": { @@ -94,7 +150,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.2-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -114,40 +170,38 @@ ], "description": "The Illuminate Contracts package.", "homepage": "http://laravel.com", - "time": "2015-12-19 14:25:38" + "time": "2015-09-24 11:16:48" }, { "name": "illuminate/support", - "version": "v5.2.0", + "version": "v5.1.25", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "0b25fb20b0c75392b0b3848fe067275c51235e37" + "reference": "2c5ec47f0c7befaa394072184c14dc626665b6ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/0b25fb20b0c75392b0b3848fe067275c51235e37", - "reference": "0b25fb20b0c75392b0b3848fe067275c51235e37", + "url": "https://api.github.com/repos/illuminate/support/zipball/2c5ec47f0c7befaa394072184c14dc626665b6ac", + "reference": "2c5ec47f0c7befaa394072184c14dc626665b6ac", "shasum": "" }, "require": { + "danielstjules/stringy": "~1.8", "doctrine/inflector": "~1.0", "ext-mbstring": "*", - "illuminate/contracts": "5.2.*", + "illuminate/contracts": "5.1.*", "php": ">=5.5.9" }, "suggest": { - "illuminate/filesystem": "Required to use the composer class (5.2.*).", - "jeremeamia/superclosure": "Required to be able to serialize closures (~2.2).", + "jeremeamia/superclosure": "Required to be able to serialize closures (~2.0).", "paragonie/random_compat": "Provides a compatible interface like PHP7's random_bytes() in PHP 5 projects (~1.1).", - "symfony/polyfill-php56": "Required to use the hash_equals function on PHP 5.5 (~1.0).", - "symfony/process": "Required to use the composer class (2.8.*|3.0.*).", - "symfony/var-dumper": "Improves the dd function (2.8.*|3.0.*)." + "symfony/var-dumper": "Improves the dd function (2.7.*)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.2-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -170,7 +224,7 @@ ], "description": "The Illuminate Support package.", "homepage": "http://laravel.com", - "time": "2015-12-07 16:09:55" + "time": "2015-11-29 16:58:05" } ], "packages-dev": [ @@ -570,41 +624,36 @@ }, { "name": "jms/serializer", - "version": "1.1.0", + "version": "0.16.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/serializer.git", - "reference": "fe13a1f993ea3456e195b7820692f2eb2b6bbb48" + "reference": "c8a171357ca92b6706e395c757f334902d430ea9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/fe13a1f993ea3456e195b7820692f2eb2b6bbb48", - "reference": "fe13a1f993ea3456e195b7820692f2eb2b6bbb48", + "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/c8a171357ca92b6706e395c757f334902d430ea9", + "reference": "c8a171357ca92b6706e395c757f334902d430ea9", "shasum": "" }, "require": { "doctrine/annotations": "1.*", - "doctrine/instantiator": "~1.0.3", "jms/metadata": "~1.1", "jms/parser-lib": "1.*", - "php": ">=5.4.0", + "php": ">=5.3.2", "phpcollection/phpcollection": "~0.1" }, - "conflict": { - "twig/twig": "<1.12" - }, "require-dev": { "doctrine/orm": "~2.1", "doctrine/phpcr-odm": "~1.0.1", "jackalope/jackalope-doctrine-dbal": "1.0.*", - "phpunit/phpunit": "~4.0", "propel/propel1": "~1.7", "symfony/filesystem": "2.*", "symfony/form": "~2.1", "symfony/translation": "~2.0", "symfony/validator": "~2.0", "symfony/yaml": "2.*", - "twig/twig": "~1.12|~2.0" + "twig/twig": ">=1.8,<2.0-dev" }, "suggest": { "symfony/yaml": "Required if you'd like to serialize data to YAML format." @@ -612,7 +661,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "0.15-dev" } }, "autoload": { @@ -626,8 +675,10 @@ ], "authors": [ { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com" + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh", + "role": "Developer of wrapped JMSSerializerBundle" } ], "description": "Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.", @@ -639,7 +690,7 @@ "serialization", "xml" ], - "time": "2015-10-27 09:24:41" + "time": "2014-03-18 08:39:00" }, { "name": "myclabs/deep-copy", @@ -999,16 +1050,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "3.0.2", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f7bb5cddf4ffe113eeb737b05241adb947b43f9d" + "reference": "64d40a593fc31a8abf4ce3d200147ddf8ca64e52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f7bb5cddf4ffe113eeb737b05241adb947b43f9d", - "reference": "f7bb5cddf4ffe113eeb737b05241adb947b43f9d", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/64d40a593fc31a8abf4ce3d200147ddf8ca64e52", + "reference": "64d40a593fc31a8abf4ce3d200147ddf8ca64e52", "shasum": "" }, "require": { @@ -1031,7 +1082,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-master": "3.1.x-dev" } }, "autoload": { @@ -1057,7 +1108,7 @@ "testing", "xunit" ], - "time": "2015-11-12 21:08:20" + "time": "2016-01-11 10:05:34" }, { "name": "phpunit/php-file-iterator", @@ -1239,16 +1290,16 @@ }, { "name": "phpunit/phpunit", - "version": "5.1.3", + "version": "5.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c047ff05d2279404af9a7e89e2a7151c32c88022" + "reference": "119ddce28d6d724b09c43357c034e1fc6be645c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c047ff05d2279404af9a7e89e2a7151c32c88022", - "reference": "c047ff05d2279404af9a7e89e2a7151c32c88022", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/119ddce28d6d724b09c43357c034e1fc6be645c5", + "reference": "119ddce28d6d724b09c43357c034e1fc6be645c5", "shasum": "" }, "require": { @@ -1264,7 +1315,7 @@ "phpunit/php-file-iterator": "~1.4", "phpunit/php-text-template": "~1.2", "phpunit/php-timer": ">=1.0.6", - "phpunit/phpunit-mock-objects": ">=3.0.5", + "phpunit/phpunit-mock-objects": ">=3.0", "sebastian/comparator": "~1.1", "sebastian/diff": "~1.2", "sebastian/environment": "~1.3", @@ -1309,7 +1360,7 @@ "testing", "xunit" ], - "time": "2015-12-10 07:54:54" + "time": "2015-12-07 15:40:57" }, { "name": "phpunit/phpunit-mock-objects", @@ -1369,40 +1420,39 @@ }, { "name": "scrutinizer/ocular", - "version": "1.3.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/scrutinizer-ci/ocular.git", - "reference": "72dcffcd4fbafeff41bf51da349df33170f487e5" + "reference": "8e0a8c7f085bc4857bd52132833679dcfd504fc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/scrutinizer-ci/ocular/zipball/72dcffcd4fbafeff41bf51da349df33170f487e5", - "reference": "72dcffcd4fbafeff41bf51da349df33170f487e5", + "url": "https://api.github.com/repos/scrutinizer-ci/ocular/zipball/8e0a8c7f085bc4857bd52132833679dcfd504fc1", + "reference": "8e0a8c7f085bc4857bd52132833679dcfd504fc1", "shasum": "" }, "require": { "guzzle/guzzle": "~3.0", - "jms/serializer": "^1.0.0", + "jms/serializer": "~0.13", "phpoption/phpoption": "~1.0", - "symfony/console": "~2.0|~3.0", - "symfony/process": "~2.3|~3.0" + "symfony/console": "~2.0", + "symfony/process": "~2.3" }, "require-dev": { - "phpunit/phpunit": "^4.8.0", - "symfony/filesystem": "~2.0|~3.0" + "symfony/filesystem": "~2.0" }, "bin": [ "bin/ocular" ], "type": "library", "autoload": { - "psr-4": { - "Scrutinizer\\Ocular\\": "src/Scrutinizer/Ocular" + "psr-0": { + "Scrutinizer\\Ocular\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", - "time": "2015-12-16 14:33:15" + "time": "2014-04-12 20:46:35" }, { "name": "sebastian/comparator", @@ -1896,16 +1946,16 @@ }, { "name": "symfony/config", - "version": "v2.8.0", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "f21c97aec1b5302d2dc0d17047ea8f4e4ff93aae" + "reference": "41ee6c70758f40fa1dbf90d019ae0a66c4a09e74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/f21c97aec1b5302d2dc0d17047ea8f4e4ff93aae", - "reference": "f21c97aec1b5302d2dc0d17047ea8f4e4ff93aae", + "url": "https://api.github.com/repos/symfony/config/zipball/41ee6c70758f40fa1dbf90d019ae0a66c4a09e74", + "reference": "41ee6c70758f40fa1dbf90d019ae0a66c4a09e74", "shasum": "" }, "require": { @@ -1942,30 +1992,30 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2015-11-23 20:38:01" + "time": "2016-01-03 15:33:41" }, { "name": "symfony/console", - "version": "v3.0.0", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "175871ca8d1ef16ff8d8cac395a1c73afa8d0e63" + "reference": "d0239fb42f98dd02e7d342f793c5d2cdee0c478d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/175871ca8d1ef16ff8d8cac395a1c73afa8d0e63", - "reference": "175871ca8d1ef16ff8d8cac395a1c73afa8d0e63", + "url": "https://api.github.com/repos/symfony/console/zipball/d0239fb42f98dd02e7d342f793c5d2cdee0c478d", + "reference": "d0239fb42f98dd02e7d342f793c5d2cdee0c478d", "shasum": "" }, "require": { - "php": ">=5.5.9", + "php": ">=5.3.9", "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { "psr/log": "~1.0", - "symfony/event-dispatcher": "~2.8|~3.0", - "symfony/process": "~2.8|~3.0" + "symfony/event-dispatcher": "~2.1|~3.0.0", + "symfony/process": "~2.1|~3.0.0" }, "suggest": { "psr/log": "For using the console logger", @@ -1975,7 +2025,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "2.8-dev" } }, "autoload": { @@ -2002,20 +2052,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2015-11-30 12:36:17" + "time": "2016-01-14 08:33:16" }, { "name": "symfony/dependency-injection", - "version": "v2.8.0", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "1ac8ce1a1cff7ff9467d44bc71b0f71dfa751ba4" + "reference": "ba94a914e244e0d05f0aaef460d5558d5541d2b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/1ac8ce1a1cff7ff9467d44bc71b0f71dfa751ba4", - "reference": "1ac8ce1a1cff7ff9467d44bc71b0f71dfa751ba4", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/ba94a914e244e0d05f0aaef460d5558d5541d2b1", + "reference": "ba94a914e244e0d05f0aaef460d5558d5541d2b1", "shasum": "" }, "require": { @@ -2064,20 +2114,20 @@ ], "description": "Symfony DependencyInjection Component", "homepage": "https://symfony.com", - "time": "2015-11-30 06:56:28" + "time": "2016-01-12 17:46:01" }, { "name": "symfony/event-dispatcher", - "version": "v2.8.0", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "a5eb815363c0388e83247e7e9853e5dbc14999cc" + "reference": "ee278f7c851533e58ca307f66305ccb9188aceda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a5eb815363c0388e83247e7e9853e5dbc14999cc", - "reference": "a5eb815363c0388e83247e7e9853e5dbc14999cc", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ee278f7c851533e58ca307f66305ccb9188aceda", + "reference": "ee278f7c851533e58ca307f66305ccb9188aceda", "shasum": "" }, "require": { @@ -2124,20 +2174,20 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2015-10-30 20:15:42" + "time": "2016-01-13 10:28:07" }, { "name": "symfony/filesystem", - "version": "v2.8.0", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "3e661a0d521ac67496515fa6e6704bd61bcfff60" + "reference": "637b64d0ee10f44ae98dbad651b1ecdf35a11e8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/3e661a0d521ac67496515fa6e6704bd61bcfff60", - "reference": "3e661a0d521ac67496515fa6e6704bd61bcfff60", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/637b64d0ee10f44ae98dbad651b1ecdf35a11e8c", + "reference": "637b64d0ee10f44ae98dbad651b1ecdf35a11e8c", "shasum": "" }, "require": { @@ -2173,25 +2223,28 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2015-11-23 10:19:46" + "time": "2016-01-13 10:28:07" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "0b6a8940385311a24e060ec1fe35680e17c74497" + "reference": "49ff736bd5d41f45240cec77b44967d76e0c3d25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0b6a8940385311a24e060ec1fe35680e17c74497", - "reference": "0b6a8940385311a24e060ec1fe35680e17c74497", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/49ff736bd5d41f45240cec77b44967d76e0c3d25", + "reference": "49ff736bd5d41f45240cec77b44967d76e0c3d25", "shasum": "" }, "require": { "php": ">=5.3.3" }, + "suggest": { + "ext-mbstring": "For best performance" + }, "type": "library", "extra": { "branch-alias": { @@ -2229,29 +2282,29 @@ "portable", "shim" ], - "time": "2015-11-04 20:28:58" + "time": "2015-11-20 09:19:13" }, { "name": "symfony/process", - "version": "v3.0.0", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "01383ed02a1020759bc8ee5d975fcec04ba16fbf" + "reference": "6f1979c3b0f4c22c77a8a8971afaa7dd07f082ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/01383ed02a1020759bc8ee5d975fcec04ba16fbf", - "reference": "01383ed02a1020759bc8ee5d975fcec04ba16fbf", + "url": "https://api.github.com/repos/symfony/process/zipball/6f1979c3b0f4c22c77a8a8971afaa7dd07f082ac", + "reference": "6f1979c3b0f4c22c77a8a8971afaa7dd07f082ac", "shasum": "" }, "require": { - "php": ">=5.5.9" + "php": ">=5.3.9" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "2.8-dev" } }, "autoload": { @@ -2278,20 +2331,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2015-11-30 12:36:17" + "time": "2016-01-06 09:59:23" }, { "name": "symfony/yaml", - "version": "v3.0.0", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "177a015cb0e19ff4a49e0e2e2c5fc1c1bee07002" + "reference": "3df409958a646dad2bc5046c3fb671ee24a1a691" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/177a015cb0e19ff4a49e0e2e2c5fc1c1bee07002", - "reference": "177a015cb0e19ff4a49e0e2e2c5fc1c1bee07002", + "url": "https://api.github.com/repos/symfony/yaml/zipball/3df409958a646dad2bc5046c3fb671ee24a1a691", + "reference": "3df409958a646dad2bc5046c3fb671ee24a1a691", "shasum": "" }, "require": { @@ -2327,7 +2380,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2015-11-30 12:36:17" + "time": "2015-12-26 13:39:53" } ], "aliases": [], diff --git a/src/Exceptions/InvalidColumnException.php b/src/Exceptions/InvalidColumnException.php index de9268b..62b9c5e 100644 --- a/src/Exceptions/InvalidColumnException.php +++ b/src/Exceptions/InvalidColumnException.php @@ -12,7 +12,6 @@ class InvalidColumnException extends InvalidArgumentException * New Instance * * @param string $name validator name - * @param array $data invalid data * @param string $message exception message */ public function __construct($name, $message = '') diff --git a/src/Exceptions/InvalidQueryException.php b/src/Exceptions/InvalidQueryException.php index 16b9dcc..fb2bd70 100644 --- a/src/Exceptions/InvalidQueryException.php +++ b/src/Exceptions/InvalidQueryException.php @@ -12,7 +12,6 @@ class InvalidQueryException extends InvalidArgumentException * New Instance * * @param string $name validator name - * @param array $data invalid data * @param string $message exception message */ public function __construct($name, $message = '') diff --git a/src/Queries/CreateTable.php b/src/Queries/CreateTable.php index c33f5a5..789a43b 100644 --- a/src/Queries/CreateTable.php +++ b/src/Queries/CreateTable.php @@ -2,7 +2,7 @@ namespace Highideas\SqlToMigration\Queries; -use Highideas\SqlToMigration\Queries\Statements\Columns\ColumnFactory; +use Highideas\SqlToMigration\Exceptions\InvalidQueryException; class CreateTable implements QueryInterface { diff --git a/src/Queries/QueryFactory.php b/src/Queries/QueryFactory.php index e8bd43b..1c729b9 100644 --- a/src/Queries/QueryFactory.php +++ b/src/Queries/QueryFactory.php @@ -8,6 +8,9 @@ class QueryFactory { + /** + * @param string $query + */ public static function instantiate($query) { diff --git a/src/Queries/Statements/Columns/BooleanColumn.php b/src/Queries/Statements/Columns/BooleanColumn.php index 579d514..7d4441b 100644 --- a/src/Queries/Statements/Columns/BooleanColumn.php +++ b/src/Queries/Statements/Columns/BooleanColumn.php @@ -2,8 +2,6 @@ namespace Highideas\SqlToMigration\Queries\Statements\Columns; -use Highideas\SqlToMigration\Exceptions\InvalidColumnException; - class BooleanColumn extends Column { diff --git a/src/Queries/Statements/Columns/Column.php b/src/Queries/Statements/Columns/Column.php index 7a74000..fa8333e 100644 --- a/src/Queries/Statements/Columns/Column.php +++ b/src/Queries/Statements/Columns/Column.php @@ -3,9 +3,6 @@ namespace Highideas\SqlToMigration\Queries\Statements\Columns; use Highideas\SqlToMigration\Exceptions\InvalidColumnException; -use Highideas\SqlToMigration\Queries\Statements\Constraints\NotNull; -use Highideas\SqlToMigration\Queries\Statements\Constraints\DefaultValue; -use Highideas\SqlToMigration\Queries\Statements\Constraints\AutoIncrement; abstract class Column implements ColumnInterface { diff --git a/src/Queries/Statements/Statement.php b/src/Queries/Statements/Statement.php index 5d6ae86..6956f6b 100644 --- a/src/Queries/Statements/Statement.php +++ b/src/Queries/Statements/Statement.php @@ -4,11 +4,10 @@ use Highideas\SqlToMigration\Exceptions\InvalidColumnException; +use Highideas\SqlToMigration\Collections\Collection; use Highideas\SqlToMigration\Queries\Statements\Columns\ColumnFactory; -use Highideas\SqlToMigration\Queries\Statements\Columns\ColumnInterface; use Highideas\SqlToMigration\Queries\Statements\Constraints\PrimaryKey; use Highideas\SqlToMigration\Queries\Validators\IntegrityValidator; -use Highideas\SqlToMigration\Collections\Collection; class Statement { diff --git a/src/Queries/Validators/IntegrityValidator.php b/src/Queries/Validators/IntegrityValidator.php index f516266..172209a 100644 --- a/src/Queries/Validators/IntegrityValidator.php +++ b/src/Queries/Validators/IntegrityValidator.php @@ -2,19 +2,16 @@ namespace Highideas\SqlToMigration\Queries\Validators; -use Highideas\SqlToMigration\Queries\Statements\Constraints\ConstraintInterface; -use Highideas\SqlToMigration\Collections\Collection; use Highideas\SqlToMigration\Queries\Statements\Statement; /** - * @property ConstraintInterface $constraint - * @property Collection $columns + * @property Statement $statement + * @property Array $errors */ class IntegrityValidator implements ValidatorInterface { private $statement; - private $columns; private $errors; public function __construct(Statement $statement) diff --git a/src/SqlManager.php b/src/SqlManager.php index 175997e..dda8559 100644 --- a/src/SqlManager.php +++ b/src/SqlManager.php @@ -2,6 +2,8 @@ namespace Highideas\SqlToMigration; +use Highideas\SqlToMigration\Queries\QueryFactory; + class SqlManager { protected $rawQuery;