lib/GitHub/Event/Payload.php
public function setSecret(string $secret): Payload
    {
        $this->secret = hash_hmac('sha1', $this->rawData, $secret);

        return $this;
    }
public function setSecret(string $secret): Payload
    {
        $this->secret = hash_hmac('sha1', $this->rawData, $secret);

        return $this;
    }
public function setSecret ( string $ secret ) : Payload { $ this -> secret = hash_hmac ( 'sha1' , $ this -> rawData , $ secret ) ; return $ this ; }
Set secret, encode this secret with Hmac, SHA1 method

@param string $secret

@return Payload
Set secret encode this secret with Hmac SHA1 method