Basket::get PHP Method

get() public method

Retrieve value of field
public get ( $key ) : scalar | FALSE
$key string
return scalar | FALSE
    function &get($key)
    {
        if ($key == '_id') {
            return $this->id;
        }
        if (array_key_exists($key, $this->item)) {
            return $this->item[$key];
        }
        user_error(sprintf(self::E_Field, $key), E_USER_ERROR);
        return FALSE;
    }