public function replaceKeyword($keyword, $action)
    {
        if (!$this->hasKeyword($keyword)) {
            throw new InvalidArgumentException("The keyword $keyword is not set.", 32);
        }

        $this->setKeyword($keyword, $action);
    }
public function replaceKeyword($keyword, $action)
    {
        if (!$this->hasKeyword($keyword)) {
            throw new InvalidArgumentException("The keyword $keyword is not set.", 32);
        }

        $this->setKeyword($keyword, $action);
    }
public function replaceKeyword ( $ keyword , $ action ) { if ( ! $ this -> hasKeyword ( $ keyword ) ) { throw new InvalidArgumentException ( "The keyword $keyword is not set." , 32 ) ; } $ this -> setKeyword ( $ keyword , $ action ) ; }
Replace custom keyword.

@param string   $keyword the keyword to be found.
@param callable $action  action to be executed when the keyword is found.
Replace custom keyword .