Skip to content

Commit

Permalink
Adjustments as per review.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 15, 2016
1 parent c7d4415 commit e7510d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
16 changes: 8 additions & 8 deletions src/Database/Schema/TableSchema.php
Expand Up @@ -759,10 +759,10 @@ public function options($options = null)
}

/**
* Get/Set whether the table is temporary in the database
* Sets whether the table is temporary in the database.
*
* @param bool $temporary Whether or not the table is to be temporary
* @return $this TableSchema instance.
* @param bool $temporary Whether or not the table is to be temporary.
* @return $this Instance.
*/
public function setTemporary($temporary)
{
Expand All @@ -772,19 +772,19 @@ public function setTemporary($temporary)
}

/**
* Get/Set whether the table is temporary in the database
* Gets whether the table is temporary in the database.
*
* @return bool The current temporary setting
* @return bool The current temporary setting.
*/
public function getTemporary()
public function isTemporary()
{
return $this->_temporary;
}

/**
* Get/Set whether the table is temporary in the database
*
* @deprecated 3.4.0 Use setTemporary()/getTemporary() instead.
* @deprecated 3.4.0 Use setTemporary()/isTemporary() instead.
* @param bool|null $temporary whether or not the table is to be temporary
* @return $this|bool Either the TableSchema instance, the current temporary setting
*/
Expand All @@ -794,7 +794,7 @@ public function temporary($temporary = null)
return $this->setTemporary($temporary);
}

return $this->getTemporary();
return $this->isTemporary();
}

/**
Expand Down
13 changes: 2 additions & 11 deletions src/ORM/EagerLoadable.php
Expand Up @@ -216,22 +216,13 @@ public function setCanBeJoined($possible)
return $this;
}

/**
* Gets whether or not this level can be fetched using a join.
*
* @return bool
*/
public function getCanBeJoined()
{
return $this->_canBeJoined;
}

/**
* Sets whether or not this level can be fetched using a join.
*
* If called with no arguments it returns the current value.
*
* @deprecated 3.4.0 Use setCanBeJoined()/getCanBeJoined() instead.
* As of 3.4.0 the setter part is deprecated, use setCanBeJoined() instead.
*
* @param bool|null $possible The value to set.
* @return bool
*/
Expand Down

0 comments on commit e7510d8

Please sign in to comment.