for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* SocialConnect project
* @author: Patsura Dmitry https://github.com/ovr <[email protected]>
*/
declare(strict_types=1);
namespace SocialConnect\Provider;
class Consumer
{
* @var string
protected $key;
protected $secret;
* Some API's need another key then secret for API requests
*
protected $public;
* @var string|null
public $callback_url;
* @param string $key
* @param string $secret
* @param string|null $callback_url
public function __construct($key, $secret, $callback_url = null)
$this->key = $key;
$this->secret = $secret;
$this->callback_url = $callback_url;
}
public function __toString()
return "OAuthConsumer[key=$this->key,secret=$this->secret]";
* @return string
public function getKey()
return $this->key;
public function getSecret()
return $this->secret;
public function getPublic()
return $this->public;
* @param string $public
public function setPublic($public)
$this->public = $public;