Example #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);
 }
Example #2
0
 /**
  * @param Twitter $twitter
  * @return Tweet
  */
 public function unfavourite(Twitter $twitter)
 {
     return new Tweet($twitter->post("favorites/destroy", ["id" => $this->getID()]));
 }