public function isValid($api_key)
    {
        if (!$api_key) {
            return false;
        }

        return ($this->event_hash == $this->calculateHash($api_key))
            ? true : false;
    }
public function isValid($api_key)
    {
        if (!$api_key) {
            return false;
        }

        return ($this->event_hash == $this->calculateHash($api_key))
            ? true : false;
    }
public function isValid ( $ api_key ) { if ( ! $ api_key ) { return false ; } return ( $ this -> event_hash == $ this -> calculateHash ( $ api_key ) ) ? true : false ; }
Check the event is valid or not
@param  string $api_key
@return boolean
@see Event::calculateHash()
Check the event is valid or not