@@ -64,6 +64,9 @@ discard block |
||
64 | 64 | return $this->getOptions($options); |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param integer $length |
|
69 | + */ |
|
67 | 70 | public function string(?int $length = null, bool $fixed = false): TdbmFluidColumnOptions |
68 | 71 | { |
69 | 72 | $options = $this->fluidColumn->string($length, $fixed); |
@@ -82,6 +85,9 @@ discard block |
||
82 | 85 | return $this->getOptions($options); |
83 | 86 | } |
84 | 87 | |
88 | + /** |
|
89 | + * @param integer $length |
|
90 | + */ |
|
85 | 91 | public function binary(?int $length = null, bool $fixed = false): TdbmFluidColumnOptions |
86 | 92 | { |
87 | 93 | $options = $this->fluidColumn->binary($length, $fixed); |
@@ -184,6 +190,9 @@ discard block |
||
184 | 190 | return $this->getOptions($options); |
185 | 191 | } |
186 | 192 | |
193 | + /** |
|
194 | + * @param string $constraintName |
|
195 | + */ |
|
187 | 196 | public function references(string $tableName, ?string $constraintName = null, string $onUpdate = 'RESTRICT', string $onDelete = 'RESTRICT'): TdbmFluidColumnOptions |
188 | 197 | { |
189 | 198 | $options = $this->fluidColumn->references($tableName, $constraintName, $onUpdate, $onDelete); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | |
7 | 7 | use Doctrine\DBAL\Schema\Column; |
8 | -use Doctrine\DBAL\Schema\Table; |
|
9 | 8 | |
10 | 9 | class TdbmFluidColumn |
11 | 10 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace TheCodingMachine\FluidSchema; |
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Schema\Schema; |
6 | -use Doctrine\DBAL\Types\Type; |
|
7 | 6 | use PHPUnit\Framework\TestCase; |
8 | 7 | |
9 | 8 | class TdbmFluidJunctionTableGraphqlOptionsTest extends TestCase |