Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
605e2015
Commit
605e2015
authored
May 04, 2020
by
Guilherme Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Type hinted Table constructor
parent
0e273a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Table.php
src/Schema/Table.php
+4
-5
No files found.
src/Schema/Table.php
View file @
605e2015
...
@@ -48,7 +48,6 @@ class Table extends AbstractAsset
...
@@ -48,7 +48,6 @@ class Table extends AbstractAsset
private
$implicitIndexes
=
[];
private
$implicitIndexes
=
[];
/**
/**
* @param string $tableName
* @param Column[] $columns
* @param Column[] $columns
* @param Index[] $indexes
* @param Index[] $indexes
* @param UniqueConstraint[] $uniqueConstraints
* @param UniqueConstraint[] $uniqueConstraints
...
@@ -58,18 +57,18 @@ class Table extends AbstractAsset
...
@@ -58,18 +57,18 @@ class Table extends AbstractAsset
* @throws DBALException
* @throws DBALException
*/
*/
public
function
__construct
(
public
function
__construct
(
$tableN
ame
,
string
$n
ame
,
array
$columns
=
[],
array
$columns
=
[],
array
$indexes
=
[],
array
$indexes
=
[],
array
$uniqueConstraints
=
[],
array
$uniqueConstraints
=
[],
array
$fkConstraints
=
[],
array
$fkConstraints
=
[],
array
$options
=
[]
array
$options
=
[]
)
{
)
{
if
(
strlen
(
$tableName
)
===
0
)
{
if
(
$name
===
''
)
{
throw
DBALException
::
invalidTableName
(
$
tableN
ame
);
throw
DBALException
::
invalidTableName
(
$
n
ame
);
}
}
$this
->
_setName
(
$
tableN
ame
);
$this
->
_setName
(
$
n
ame
);
foreach
(
$columns
as
$column
)
{
foreach
(
$columns
as
$column
)
{
$this
->
_addColumn
(
$column
);
$this
->
_addColumn
(
$column
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment