phpdoc fixes
This commit is contained in:
@@ -567,6 +567,7 @@ abstract class Model {
|
||||
* Get a given attribute from the model.
|
||||
*
|
||||
* @param string $key
|
||||
* @return mixed
|
||||
*/
|
||||
public function get_attribute($key)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -475,6 +475,7 @@ class Query {
|
||||
* @param string $column
|
||||
* @param string $operator
|
||||
* @param mixed $value
|
||||
* @return Query
|
||||
*/
|
||||
public function having($column, $operator, $value)
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ class Schema {
|
||||
* Rename a database table in the schema.
|
||||
*
|
||||
* @param string $table
|
||||
* @param string $name
|
||||
* @param string $new_name
|
||||
* @return void
|
||||
*/
|
||||
public static function rename($table, $new_name)
|
||||
|
||||
@@ -9,7 +9,7 @@ abstract class Grammar extends \Laravel\Database\Grammar {
|
||||
* Generate the SQL statement for creating a foreign key.
|
||||
*
|
||||
* @param Table $table
|
||||
* @param Command $command
|
||||
* @param Fluent $command
|
||||
* @return string
|
||||
*/
|
||||
public function foreign(Table $table, Fluent $command)
|
||||
@@ -54,7 +54,7 @@ abstract class Grammar extends \Laravel\Database\Grammar {
|
||||
* Drop a constraint from the table.
|
||||
*
|
||||
* @param Table $table
|
||||
* @param Fluent $fluent
|
||||
* @param Fluent $command
|
||||
* @return string
|
||||
*/
|
||||
protected function drop_constraint(Table $table, Fluent $command)
|
||||
|
||||
@@ -323,7 +323,7 @@ class MySQL extends Grammar {
|
||||
* Drop a foreign key constraint from the table.
|
||||
*
|
||||
* @param Table $table
|
||||
* @param Fluent $fluent
|
||||
* @param Fluent $command
|
||||
* @return string
|
||||
*/
|
||||
public function drop_foreign(Table $table, Fluent $command)
|
||||
|
||||
@@ -309,7 +309,7 @@ class Postgres extends Grammar {
|
||||
* Drop a foreign key constraint from the table.
|
||||
*
|
||||
* @param Table $table
|
||||
* @param Fluent $fluent
|
||||
* @param Fluent $command
|
||||
* @return string
|
||||
*/
|
||||
public function drop_foreign(Table $table, Fluent $command)
|
||||
|
||||
@@ -327,7 +327,7 @@ class SQLServer extends Grammar {
|
||||
* Drop a foreign key constraint from the table.
|
||||
*
|
||||
* @param Table $table
|
||||
* @param Fluent $fluent
|
||||
* @param Fluent $command
|
||||
* @return string
|
||||
*/
|
||||
public function drop_foreign(Table $table, Fluent $command)
|
||||
|
||||
@@ -113,6 +113,7 @@ class Table {
|
||||
*
|
||||
* @param string|array $columns
|
||||
* @param string $name
|
||||
* @return Fluent
|
||||
*/
|
||||
public function foreign($columns, $name = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user