public function remove(string $group = "", string $key = ""): ArrayCache
    {
        $isGroupEmpty = ($group === "");
        $isKeyEmpty = ($key === "");

        if ($isGroupEmpty && !$isKeyEmpty) {
            throw new \LogicException(
                "removing a value by key is only possible when a group ".
                "is provided"
            );
        }

        if ($isKeyEmpty) {
            unset($this->values[$group]);
        } else {
            unset($this->values[$group][$key]);
        }

        return $this;
    }
public function remove(string $group = "", string $key = ""): ArrayCache
    {
        $isGroupEmpty = ($group === "");
        $isKeyEmpty = ($key === "");

        if ($isGroupEmpty && !$isKeyEmpty) {
            throw new \LogicException(
                "removing a value by key is only possible when a group ".
                "is provided"
            );
        }

        if ($isKeyEmpty) {
            unset($this->values[$group]);
        } else {
            unset($this->values[$group][$key]);
        }

        return $this;
    }
public function remove ( string $ group = "" , string $ key = "" ) : ArrayCache { $ isGroupEmpty = ( $ group === "" ) ; $ isKeyEmpty = ( $ key === "" ) ; if ( $ isGroupEmpty && ! $ isKeyEmpty ) { throw new \ LogicException ( "removing a value by key is only possible when a group " . "is provided" ) ; } if ( $ isKeyEmpty ) { unset ( $ this -> values [ $ group ] ) ; } else { unset ( $ this -> values [ $ group ] [ $ key ] ) ; } return $ this ; }
Remove a value or an entire group of values from storage

@param string $group The group to remove
@param string $key The identifier of the value to remove
@return \sndsgd\ArrayCache
Remove a value or an entire group of values from storage