Ejemplo n.º 1
0
 public function buildArray()
 {
     $twitter = new Twitter();
     $tweets = $twitter->getTweets();
     $start = (int) $this->getStart();
     $count = (int) $this->getCount();
     return array_slice($tweets, $start, $count);
 }
Ejemplo n.º 2
0
 /**
  * @param Twitter $twitter
  * @return Tweet
  */
 public function unfavourite(Twitter $twitter)
 {
     return new Tweet($twitter->post("favorites/destroy", ["id" => $this->getID()]));
 }