phpdoc fixes

This commit is contained in:
Sergii Grebeniuk
2012-08-03 18:17:48 +03:00
parent 7256dc2a65
commit 690e8572aa
31 changed files with 48 additions and 28 deletions

View File

@@ -567,6 +567,7 @@ abstract class Model {
* Get a given attribute from the model.
*
* @param string $key
* @return mixed
*/
public function get_attribute($key)
{

View File

@@ -79,8 +79,9 @@ class Belongs_To extends Relationship {
/**
* Match eagerly loaded child models to their parent models.
*
* @param array $children
* @param array $parents
* @param string $relationship
* @param array $children
* @param array $parents
* @return void
*/
public function match($relationship, &$children, $parents)

View File

@@ -83,8 +83,9 @@ class Has_Many extends Has_One_Or_Many {
/**
* Match eagerly loaded child models to their parent models.
*
* @param array $parents
* @param array $children
* @param string $relationship
* @param array $parents
* @param array $children
* @return void
*/
public function match($relationship, &$parents, $children)

View File

@@ -61,6 +61,8 @@ class Has_Many_And_Belongs_To extends Relationship {
*
* By default, the name is the models sorted and joined with underscores.
*
* @param Model $model
* @param string $associated
* @return string
*/
protected function joining($model, $associated)
@@ -86,7 +88,7 @@ class Has_Many_And_Belongs_To extends Relationship {
* Insert a new record into the joining table of the association.
*
* @param int $id
* @param array $joining
* @param array $attributes
* @return bool
*/
public function attach($id, $attributes = array())
@@ -317,8 +319,9 @@ class Has_Many_And_Belongs_To extends Relationship {
/**
* Match eagerly loaded child models to their parent models.
*
* @param array $parents
* @param array $children
* @param string $relationship
* @param array $parents
* @param array $children
* @return void
*/
public function match($relationship, &$parents, $children)
@@ -383,7 +386,7 @@ class Has_Many_And_Belongs_To extends Relationship {
/**
* Set the columns on the joining table that should be fetched.
*
* @param array $column
* @param array $columns
* @return Relationship
*/
public function with($columns)

View File

@@ -30,8 +30,9 @@ class Has_One extends Has_One_Or_Many {
/**
* Match eagerly loaded child models to their parent models.
*
* @param array $parents
* @param array $children
* @param string $relationship
* @param array $parents
* @param array $children
* @return void
*/
public function match($relationship, &$parents, $children)