public function getPayload($key = null)
    {
        if (is_null($key)) {
            return $this->payload;
        }

        return isset($this->payload[$key]) ? $this->payload[$key] : null;
    }
public function getPayload($key = null)
    {
        if (is_null($key)) {
            return $this->payload;
        }

        return isset($this->payload[$key]) ? $this->payload[$key] : null;
    }
public function getPayload ( $ key = null ) { if ( is_null ( $ key ) ) { return $ this -> payload ; } return isset ( $ this -> payload [ $ key ] ) ? $ this -> payload [ $ key ] : null ; }
Returns a specific key

@param string|null $key

@return string|null|array
Returns a specific key