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
408161b8
Commit
408161b8
authored
Aug 03, 2017
by
Marco Pivetta
Committed by
GitHub
Aug 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2810 from bestform/declare-exceptions-in-connection-class
add @throws declarations to docs in Connection
parents
3f67cb7f
c4e528f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
Connection.php
lib/Doctrine/DBAL/Connection.php
+15
-1
No files found.
lib/Doctrine/DBAL/Connection.php
View file @
408161b8
...
@@ -322,6 +322,8 @@ class Connection implements DriverConnection
...
@@ -322,6 +322,8 @@ class Connection implements DriverConnection
* Gets the DatabasePlatform for the connection.
* Gets the DatabasePlatform for the connection.
*
*
* @return \Doctrine\DBAL\Platforms\AbstractPlatform
* @return \Doctrine\DBAL\Platforms\AbstractPlatform
*
* @throws \Doctrine\DBAL\DBALException
*/
*/
public
function
getDatabasePlatform
()
public
function
getDatabasePlatform
()
{
{
...
@@ -410,6 +412,8 @@ class Connection implements DriverConnection
...
@@ -410,6 +412,8 @@ class Connection implements DriverConnection
* version without having to query it (performance reasons).
* version without having to query it (performance reasons).
*
*
* @return string|null
* @return string|null
*
* @throws Exception
*/
*/
private
function
getDatabasePlatformVersion
()
private
function
getDatabasePlatformVersion
()
{
{
...
@@ -545,6 +549,8 @@ class Connection implements DriverConnection
...
@@ -545,6 +549,8 @@ class Connection implements DriverConnection
* @param array $types The query parameter types.
* @param array $types The query parameter types.
*
*
* @return array|bool False is returned if no rows are found.
* @return array|bool False is returned if no rows are found.
*
* @throws \Doctrine\DBAL\DBALException
*/
*/
public
function
fetchAssoc
(
$statement
,
array
$params
=
array
(),
array
$types
=
array
())
public
function
fetchAssoc
(
$statement
,
array
$params
=
array
(),
array
$types
=
array
())
{
{
...
@@ -576,6 +582,8 @@ class Connection implements DriverConnection
...
@@ -576,6 +582,8 @@ class Connection implements DriverConnection
* @param array $types The query parameter types.
* @param array $types The query parameter types.
*
*
* @return mixed|bool False is returned if no rows are found.
* @return mixed|bool False is returned if no rows are found.
*
* @throws \Doctrine\DBAL\DBALException
*/
*/
public
function
fetchColumn
(
$statement
,
array
$params
=
array
(),
$column
=
0
,
array
$types
=
array
())
public
function
fetchColumn
(
$statement
,
array
$params
=
array
(),
$column
=
0
,
array
$types
=
array
())
{
{
...
@@ -643,6 +651,7 @@ class Connection implements DriverConnection
...
@@ -643,6 +651,7 @@ class Connection implements DriverConnection
*
*
* @return integer The number of affected rows.
* @return integer The number of affected rows.
*
*
* @throws \Doctrine\DBAL\DBALException
* @throws InvalidArgumentException
* @throws InvalidArgumentException
*/
*/
public
function
delete
(
$tableExpression
,
array
$identifier
,
array
$types
=
array
())
public
function
delete
(
$tableExpression
,
array
$identifier
,
array
$types
=
array
())
...
@@ -711,6 +720,8 @@ class Connection implements DriverConnection
...
@@ -711,6 +720,8 @@ class Connection implements DriverConnection
* @param array $types Types of the merged $data and $identifier arrays in that order.
* @param array $types Types of the merged $data and $identifier arrays in that order.
*
*
* @return integer The number of affected rows.
* @return integer The number of affected rows.
*
* @throws \Doctrine\DBAL\DBALException
*/
*/
public
function
update
(
$tableExpression
,
array
$data
,
array
$identifier
,
array
$types
=
array
())
public
function
update
(
$tableExpression
,
array
$data
,
array
$identifier
,
array
$types
=
array
())
{
{
...
@@ -748,6 +759,8 @@ class Connection implements DriverConnection
...
@@ -748,6 +759,8 @@ class Connection implements DriverConnection
* @param array $types Types of the inserted data.
* @param array $types Types of the inserted data.
*
*
* @return integer The number of affected rows.
* @return integer The number of affected rows.
*
* @throws \Doctrine\DBAL\DBALException
*/
*/
public
function
insert
(
$tableExpression
,
array
$data
,
array
$types
=
array
())
public
function
insert
(
$tableExpression
,
array
$data
,
array
$types
=
array
())
{
{
...
@@ -1165,7 +1178,8 @@ class Connection implements DriverConnection
...
@@ -1165,7 +1178,8 @@ class Connection implements DriverConnection
*
*
* @return mixed The value returned by $func
* @return mixed The value returned by $func
*
*
* @throws \Exception
* @throws Exception
* @throws Throwable
*/
*/
public
function
transactional
(
Closure
$func
)
public
function
transactional
(
Closure
$func
)
{
{
...
...
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