Skip to content

Commit

Permalink
merged branch stof/phpdoc (PR #3332)
Browse files Browse the repository at this point in the history
Commits
-------

8e34f43 Fixed the phpdoc for the Response class

Discussion
----------

Fixed the phpdoc for the Response class

This adds the missing phpdoc for some return values.
  • Loading branch information
fabpot committed Feb 12, 2012
2 parents 9ac6918 + 8e34f43 commit 802fe64
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/Symfony/Component/HttpFoundation/Response.php
Expand Up @@ -732,7 +732,7 @@ public function setNotModified()
/**
* Returns true if the response includes a Vary header.
*
* @return true if the response includes a Vary header, false otherwise
* @return Boolean true if the response includes a Vary header, false otherwise
*
* @api
*/
Expand Down Expand Up @@ -802,6 +802,8 @@ public function isNotModified(Request $request)

// http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
/**
* @return Boolean
*
* @api
*/
public function isInvalid()
Expand All @@ -810,6 +812,8 @@ public function isInvalid()
}

/**
* @return Boolean
*
* @api
*/
public function isInformational()
Expand All @@ -818,6 +822,8 @@ public function isInformational()
}

/**
* @return Boolean
*
* @api
*/
public function isSuccessful()
Expand All @@ -826,6 +832,8 @@ public function isSuccessful()
}

/**
* @return Boolean
*
* @api
*/
public function isRedirection()
Expand All @@ -834,6 +842,8 @@ public function isRedirection()
}

/**
* @return Boolean
*
* @api
*/
public function isClientError()
Expand All @@ -842,6 +852,8 @@ public function isClientError()
}

/**
* @return Boolean
*
* @api
*/
public function isServerError()
Expand All @@ -850,6 +862,8 @@ public function isServerError()
}

/**
* @return Boolean
*
* @api
*/
public function isOk()
Expand All @@ -858,6 +872,8 @@ public function isOk()
}

/**
* @return Boolean
*
* @api
*/
public function isForbidden()
Expand All @@ -866,6 +882,8 @@ public function isForbidden()
}

/**
* @return Boolean
*
* @api
*/
public function isNotFound()
Expand All @@ -874,6 +892,10 @@ public function isNotFound()
}

/**
* @param string $location
*
* @return Boolean
*
* @api
*/
public function isRedirect($location = null)
Expand All @@ -882,6 +904,8 @@ public function isRedirect($location = null)
}

/**
* @return Boolean
*
* @api
*/
public function isEmpty()
Expand Down

0 comments on commit 802fe64

Please sign in to comment.