Pinq\Iterators\Common\Set::addRef PHP Method

addRef() public method

{@inheritDoc}
public addRef ( &$value )
    public function addRef(&$value)
    {
        $identityHash = Identity::hash($value);
        if (isset($this->values[$identityHash]) || array_key_exists($identityHash, $this->values)) {
            return false;
        }
        $this->values[$identityHash] =& $value;
        $this->length++;
        return true;
    }