Updated README, updated some phpdocs

This commit is contained in:
Rob Gloudemans
2013-05-22 20:49:45 +02:00
parent a8394b5a9e
commit dadd9d4087
2 changed files with 173 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ class Cart {
* Get a row of the cart by its ID
*
* @param string $rowId The ID of the row to fetch
* @return Array
* @return CartCollection
*/
public function get($rowId)
{
@@ -97,7 +97,7 @@ class Cart {
/**
* Get the cart content
*
* @return Array
* @return CartRowCollection
*/
public function content()
{
@@ -141,10 +141,11 @@ class Cart {
/**
* Get the number of items in the cart
*
*
* @param boolean $totalItems Get all the items (when false, will return the number of rows)
* @return int
*/
public function count($totalItems = TRUE)
public function count($totalItems = true)
{
$cart = $this->getContent();