Skip to content

Commit

Permalink
Update docblocks to hint to the ConnectionInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
HavokInspiration committed Oct 1, 2015
1 parent 9e9e1ee commit 337bb44
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/Database/Query.php
Expand Up @@ -36,7 +36,7 @@ class Query implements ExpressionInterface, IteratorAggregate
/**
* Connection instance to be used to execute this query.
*
* @var \Cake\Database\Connection
* @var \Cake\Datasource\ConnectionInterface
*/
protected $_connection;

Expand Down Expand Up @@ -124,7 +124,7 @@ class Query implements ExpressionInterface, IteratorAggregate
/**
* Constructor.
*
* @param \Cake\Database\Connection $connection The connection
* @param \Cake\Datasource\ConnectionInterface $connection The connection
* object to be used for transforming and executing this query
*/
public function __construct($connection)
Expand All @@ -136,8 +136,8 @@ public function __construct($connection)
* Sets the connection instance to be used for executing and transforming this query
* When called with a null argument, it will return the current connection instance.
*
* @param \Cake\Database\Connection $connection instance
* @return $this|\Cake\Database\Connection
* @param \Cake\Datasource\ConnectionInterface $connection instance
* @return $this|\Cake\Datasource\ConnectionInterface
*/
public function connection($connection = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Schema/Collection.php
Expand Up @@ -30,7 +30,7 @@ class Collection
/**
* Connection object
*
* @var \Cake\Database\Connection
* @var \Cake\Datasource\ConnectionInterface
*/
protected $_connection;

Expand Down
2 changes: 1 addition & 1 deletion src/Datasource/ConnectionManager.php
Expand Up @@ -174,7 +174,7 @@ public static function dropAlias($name)
*
* @param string $name The connection name.
* @param bool $useAliases Set to false to not use aliased connections.
* @return \Cake\Database\Connection A connection object.
* @return \Cake\Datasource\ConnectionInterface A connection object.
* @throws \Cake\Datasource\Exception\MissingDatasourceConfigException When config
* data is missing.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Query.php
Expand Up @@ -110,7 +110,7 @@ class Query extends DatabaseQuery implements JsonSerializable
/**
* Constructor
*
* @param \Cake\Database\Connection $connection The connection object
* @param \Cake\Datasource\ConnectionInterface $connection The connection object
* @param \Cake\ORM\Table $table The table this query is starting on
*/
public function __construct($connection, $table)
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Table.php
Expand Up @@ -161,7 +161,7 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
/**
* Connection instance
*
* @var \Cake\Database\Connection
* @var \Cake\Datasource\ConnectionInterface
*/
protected $_connection;

Expand Down
2 changes: 1 addition & 1 deletion src/TestSuite/Fixture/FixtureManager.php
Expand Up @@ -339,7 +339,7 @@ public function unload($test)
* Creates a single fixture table and loads data into it.
*
* @param string $name of the fixture
* @param \Cake\Database\Connection $db Connection instance or leave null to get a Connection from the fixture
* @param \Cake\Datasource\ConnectionInterface $db Connection instance or leave null to get a Connection from the fixture
* @param bool $dropTables Whether or not tables should be dropped and re-created.
* @return void
* @throws \UnexpectedValueException if $name is not a previously loaded class
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Database/Schema/MysqlSchemaTest.php
Expand Up @@ -184,7 +184,7 @@ public function testConvertColumn($type, $expected)
/**
* Helper method for testing methods.
*
* @param \Cake\Database\Connection $connection
* @param \Cake\Datasource\ConnectionInterface $connection
* @return void
*/
protected function _createTables($connection)
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Database/Schema/PostgresSchemaTest.php
Expand Up @@ -41,7 +41,7 @@ protected function _needsConnection()
/**
* Helper method for testing methods.
*
* @param \Cake\Database\Connection $connection
* @param \Cake\Datasource\ConnectionInterface $connection
* @return void
*/
protected function _createTables($connection)
Expand Down

0 comments on commit 337bb44

Please sign in to comment.