Ejemplo n.º 1
0
 /**
  *
  * @param string             $userId
  * @param string             $consumerKey
  * @param string             $consumerSecret
  * @param string             $accessToken
  * @param string             $accessTokenSecret
  * @param CacheProvider|null $cacheProvider
  * @param boolean            $excludeReplies
  * @param boolean            $includeRts
  */
 public function __construct($userId, $consumerKey, $consumerSecret, $accessToken, $accessTokenSecret, CacheProvider $cacheProvider = null, $excludeReplies = true, $includeRts = false)
 {
     parent::__construct($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret, $cacheProvider);
     $this->userId = $userId;
     $this->excludeReplies = $excludeReplies;
     $this->includeRts = $includeRts;
     $this->cacheKey = $this->getFeedPlatform() . $this->userId;
 }
Ejemplo n.º 2
0
 /**
  *
  * @param array              $queryParams
  * @param string             $consumerKey
  * @param string             $consumerSecret
  * @param string             $accessToken
  * @param string             $accessTokenSecret
  * @param CacheProvider|null $cacheProvider
  */
 public function __construct(array $queryParams, $consumerKey, $consumerSecret, $accessToken, $accessTokenSecret, CacheProvider $cacheProvider = null)
 {
     parent::__construct($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret, $cacheProvider);
     $this->queryParams = array_filter($queryParams);
     $this->cacheKey = $this->getFeedPlatform() . md5(serialize($queryParams));
 }