Prowl\Message::removeApiKey PHP 메소드

removeApiKey() 공개 메소드

Removes an api key from the receiver list.
public removeApiKey ( string $sKey ) : Message
$sKey string
리턴 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;
    }