1
0
mirror of synced 2025-03-06 21:06:16 +03:00

#6167 #6168 - better connection mock documentation/docblocks/return-types

This commit is contained in:
Marco Pivetta 2017-06-21 05:47:19 +02:00
parent d2be4a2b48
commit 462481ebbe
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -1,6 +1,7 @@
<?php <?php
namespace Doctrine\Tests\Mocks; namespace Doctrine\Tests\Mocks;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\Statement; use Doctrine\DBAL\Driver\Statement;
@ -15,12 +16,12 @@ class ConnectionMock extends Connection
private $_fetchOneResult; private $_fetchOneResult;
/** /**
* @var \Exception * @var \Exception|null
*/ */
private $_fetchOneException; private $_fetchOneException;
/** /**
* @var Statement * @var Statement|null
*/ */
private $_queryResult; private $_queryResult;
@ -107,7 +108,7 @@ class ConnectionMock extends Connection
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function query() public function query() : Statement
{ {
return $this->_queryResult; return $this->_queryResult;
} }