Prowl\Message::removeApiKey PHP Method

removeApiKey() public method

Removes an api key from the receiver list.
public removeApiKey ( string $sKey ) : Message
$sKey string
return Message
    public function removeApiKey($sKey)
    {
        $iIndex = array_search($sKey, $this->aApiKeys);
        if ($iIndex === false) {
            throw new \OutOfRangeException('This API key does not exist in list.');
        } else {
            unset($this->aApiKeys[$iIndex]);
        }
        return $this;
    }