Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix broken docs

  • Loading branch information...
commit 66c7b8a50a7f46f6a1441366ef864e4d8c2a3f71 1 parent 933cc08
@phpnode authored
Showing with 11 additions and 4 deletions.
  1. +6 −2 ARedisEntity.php
  2. +5 −2 ARedisSortedSet.php
View
8 ARedisEntity.php
@@ -43,8 +43,12 @@
* @param ARedisConnection|string $connection the redis connection to use with this entity
*/
public function __construct($name = null, $connection = null) {
- $this->name = $name;
- $this->setConnection($connection);
+ if ($name !== null) {
+ $this->name = $name;
+ }
+ if ($connection !== null) {
+ $this->setConnection($connection);
+ }
}
/**
* Attaches the entity to a component
View
7 ARedisSortedSet.php
@@ -21,7 +21,8 @@ class ARedisSortedSet extends ARedisIterableEntity {
/**
* Adds an item to the set
- * @param mixed $item the item to add
+ * @param string $key the key to add
+ * @param integer $value the score for this key
* @return boolean true if the item was added, otherwise false
*/
public function add($key, $value) {
@@ -34,7 +35,7 @@ public function add($key, $value) {
}
/**
* Removes an item from the set
- * @param mixed $item the item to remove
+ * @param string $key the item to remove
* @return boolean true if the item was removed, otherwise false
*/
public function remove($key) {
@@ -50,6 +51,7 @@ public function remove($key) {
/**
* Gets the intersection between this set and the given set(s), stores it in a new set and returns it
+ * @param ARedisSortedSet|string $destination the destination to store the result in
* @param mixed $set The sets to compare to, either ARedisSortedSet instances or their names
* @param array $weights the weights for the sets, if any
* @return ARedisSortedSet a set that contains the intersection between this set and the given sets
@@ -93,6 +95,7 @@ public function interStore($destination, $set, $weights = null) {
/**
* Gets the union of this set and the given set(s), stores it in a new set and returns it
+ * @param ARedisSortedSet|string $destination the destination to store the result in
* @param mixed $set The sets to compare to, either ARedisSortedSet instances or their names
* @param array $weights the weights for the sets, if any
* @return ARedisSortedSet a set that contains the union of this set and the given sets
Please sign in to comment.
Something went wrong with that request. Please try again.