Skip to content

Commit

Permalink
Fix incorrect doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
chinpei215 committed Jul 28, 2017
1 parent 600663e commit 020915e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/Database/Query.php
Expand Up @@ -139,7 +139,7 @@ class Query implements ExpressionInterface, IteratorAggregate
/**
* Constructor.
*
* @param \Cake\Datasource\ConnectionInterface $connection The connection
* @param \Cake\Database\Connection $connection The connection
* object to be used for transforming and executing this query
*/
public function __construct($connection)
Expand All @@ -150,7 +150,7 @@ public function __construct($connection)
/**
* Sets the connection instance to be used for executing and transforming this query.
*
* @param \Cake\Datasource\ConnectionInterface $connection Connection instance
* @param \Cake\Database\Connection $connection Connection instance
* @return $this
*/
public function setConnection($connection)
Expand All @@ -176,8 +176,8 @@ public function getConnection()
* When called with a null argument, it will return the current connection instance.
*
* @deprecated 3.4.0 Use setConnection()/getConnection() instead.
* @param \Cake\Datasource\ConnectionInterface|null $connection Connection instance
* @return $this|\Cake\Datasource\ConnectionInterface
* @param \Cake\Database\Connection|null $connection Connection instance
* @return $this|\Cake\Database\Connection
*/
public function connection($connection = null)
{
Expand Down Expand Up @@ -342,7 +342,7 @@ public function traverse(callable $visitor, array $parts = [])
* ```
*
* By default no fields are selected, if you have an instance of `Cake\ORM\Query` and try to append
* fields you should also call `Cake\ORM\Query::autoFields()` to select the default fields
* fields you should also call `Cake\ORM\Query::enableAutoFields()` to select the default fields
* from the table.
*
* @param array|\Cake\Database\ExpressionInterface|string|callable $fields fields to be added to the list.
Expand Down
4 changes: 4 additions & 0 deletions src/Database/TypedResultInterface.php
Expand Up @@ -16,6 +16,9 @@

/**
* Represents an expression that is known to return a specific type
*
* @method string getReturnType()
* @method $this setReturnType($type)
*/
interface TypedResultInterface
{
Expand All @@ -24,6 +27,7 @@ interface TypedResultInterface
* Sets the type of the value this object will generate.
* If called without arguments, returns the current known type
*
* @deprecated 3.5.0 Use getReturnType()/setReturnType() instead.
* @param string|null $type The name of the type that is to be returned
* @return string|$this
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Datasource/EntityInterface.php
Expand Up @@ -33,7 +33,7 @@
* @method array getError($field)
* @method array setErrors(array $fields, $overwrite = false)
* @method array setError($field, $errors, $overwrite = false)
* @method $this setAccess($properties, $merge)
* @method $this setAccess($property, $set)
* @method bool isAccessible($property)
* @method $this setSource($source)
* @method array getSource()
Expand Down
4 changes: 4 additions & 0 deletions src/Datasource/RepositoryInterface.php
Expand Up @@ -17,13 +17,17 @@
/**
* Describes the methods that any class representing a data storage should
* comply with.
*
* @method $this setAlias($alias)
* @method string getAlias()
*/
interface RepositoryInterface
{

/**
* Returns the table alias or sets a new one
*
* @deprecated 3.4.0 Use setAlias()/getAlias() instead.
* @param string|null $alias the new table alias
* @return string
*/
Expand Down
4 changes: 4 additions & 0 deletions src/Event/EventDispatcherInterface.php
Expand Up @@ -22,6 +22,9 @@
*
* The Cake\Event\EventDispatcherTrait lets you easily implement
* this interface.
*
* @method \Cake\Event\EventManager getEventManager()
* @method $this setEventManager(\Cake\Event\EventManager $eventManager)
*/
interface EventDispatcherInterface
{
Expand All @@ -46,6 +49,7 @@ public function dispatchEvent($name, $data = null, $subject = null);
* You can use this instance to register any new listeners or callbacks to the
* object events, or create your own events and trigger them at will.
*
* @deprecated 3.5.0 Use getEventManager()/setEventManager() instead.
* @param \Cake\Event\EventManager|null $eventManager the eventManager to set
* @return \Cake\Event\EventManager
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Association/BelongsToMany.php
Expand Up @@ -253,7 +253,7 @@ public function getSort()
* Sets the sort order in which target records should be returned.
* If no arguments are passed the currently configured value is returned
*
* @deprecated 3.4.0 Use setSort()/getSort() instead.
* @deprecated 3.5.0 Use setSort()/getSort() instead.
* @param mixed $sort A find() compatible order clause
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Query.php
Expand Up @@ -155,7 +155,7 @@ class Query extends DatabaseQuery implements JsonSerializable, QueryInterface
/**
* Constructor
*
* @param \Cake\Datasource\ConnectionInterface $connection The connection object
* @param \Cake\Database\Connection $connection The connection object
* @param \Cake\ORM\Table $table The table this query is starting on
*/
public function __construct($connection, $table)
Expand Down

0 comments on commit 020915e

Please sign in to comment.