Skip to content
Permalink
Browse files

Update docblocks to hint to the ConnectionInterface

  • Loading branch information...
HavokInspiration committed Oct 1, 2015
1 parent 9e9e1ee commit 337bb4428d42a7e920839069d6ffc7d20ea49cfa
@@ -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;
@@ -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)
@@ -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)
{
@@ -30,7 +30,7 @@ class Collection
/**
* Connection object
*
* @var \Cake\Database\Connection
* @var \Cake\Datasource\ConnectionInterface
*/
protected $_connection;
@@ -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.
*/
@@ -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)
@@ -161,7 +161,7 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
/**
* Connection instance
*
* @var \Cake\Database\Connection
* @var \Cake\Datasource\ConnectionInterface
*/
protected $_connection;
@@ -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
@@ -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)
@@ -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)

0 comments on commit 337bb44

Please sign in to comment.
You can’t perform that action at this time.