Skip to content

Commit

Permalink
Correct phpDoc for AliasModel + Model base methods
Browse files Browse the repository at this point in the history
  • Loading branch information
allejo committed Feb 9, 2018
1 parent 7c82d87 commit b0f41c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Model/AliasModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getEscapedName()
/**
* Change the object's name
*
* @return self
* @return static
*/
public function setName($name)
{
Expand Down
6 changes: 5 additions & 1 deletion src/Model/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ protected static function fetchIdsFrom($column, $possible_values, $negate = fals
/**
* Get the MySQL columns that will be loaded as soon as the model is created
*
* @todo Make this protected
* @deprecated 0.10.2 Replaced by static::getEagerColumnsList() in 0.11.0
*
* @param string $prefix The prefix that'll be prefixed to column names
*
Expand All @@ -379,6 +379,8 @@ public static function getEagerColumns($prefix = null)
* This is done in order to reduce the time needed to load parameters that
* will not be requested (e.g player activation codes or permissions)
*
* @deprecated 0.10.2 Replaced by static::getLazyColumnsList() in 0.11.0
*
* @return string|null The columns in a format readable by MySQL or null to
* fetch no columns at all
*/
Expand All @@ -390,6 +392,8 @@ protected static function getLazyColumns()
/**
* Get a formatted string with a comma separated column list with table/alias prefixes if necessary.
*
* @deprecated 0.10.2 This function has been removed and is no longer required with the new query builder
*
* @param string|null $prefix The table name or SQL alias to be prepend to these columns
* @param array $columns The columns to format
*
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function isActive()
/**
* Get the models's status
*
* @deprecated 0.10.3 Use isDeleted() for checking for deleted models instead.
* @deprecated 0.11.0 Use isDeleted() for checking for deleted models instead.
*
* @return string
*/
Expand Down

0 comments on commit b0f41c2

Please sign in to comment.