Skip to content

Commit

Permalink
correct the case for Cake\Datasource\EntityInterface
Browse files Browse the repository at this point in the history
as it can be misunderstood by some IDE and static analysis tools.
  • Loading branch information
antograssiot committed Aug 13, 2015
1 parent 150be2d commit 9d98905
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Datasource/EntityInterface.php
Expand Up @@ -69,7 +69,7 @@ public function unsetProperty($property);
* will be returned. Otherwise the hidden properties will be set.
*
* @param null|array $properties Either an array of properties to hide or null to get properties
* @return array|\Cake\DataSource\EntityInterface
* @return array|\Cake\Datasource\EntityInterface
*/
public function hiddenProperties($properties = null);

Expand All @@ -80,7 +80,7 @@ public function hiddenProperties($properties = null);
* will be returned. Otherwise the virtual properties will be set.
*
* @param null|array $properties Either an array of properties to treat as virtual or null to get properties
* @return array|\Cake\DataSource\EntityInterface
* @return array|\Cake\Datasource\EntityInterface
*/
public function virtualProperties($properties = null);

Expand Down
2 changes: 1 addition & 1 deletion src/ORM/Table.php
Expand Up @@ -1656,7 +1656,7 @@ public function delete(EntityInterface $entity, $options = [])
* Will delete the entity provided. Will remove rows from any
* dependent associations, and clear out join tables for BelongsToMany associations.
*
* @param \Cake\DataSource\EntityInterface $entity The entity to delete.
* @param \Cake\Datasource\EntityInterface $entity The entity to delete.
* @param \ArrayObject $options The options for the delete.
* @throws \InvalidArgumentException if there are no primary key values of the
* passed entity
Expand Down
2 changes: 1 addition & 1 deletion src/View/Form/EntityContext.php
Expand Up @@ -256,7 +256,7 @@ protected function _extractMultiple($values, $path)
*
* @param array|null $path Each one of the parts in a path for a field name
* or null to get the entity passed in contructor context.
* @return \Cake\DataSource\EntityInterface|\Traversable|array|bool
* @return \Cake\Datasource\EntityInterface|\Traversable|array|bool
* @throws \RuntimeException When properties cannot be read.
*/
public function entity($path = null)
Expand Down

0 comments on commit 9d98905

Please sign in to comment.