key_id = $key_id; $this->consumer_key = $consumer_key; $this->consumer_secret = $consumer_secret; } /** * Keeps the key and secret out of var_dump() and print_r() output. * * @return array */ public function __debugInfo(): array { return array( 'key_id' => $this->key_id, 'consumer_key' => '***', 'consumer_secret' => '***', ); } }