Example #1
0
 public function setMoments($moments)
 {
     foreach ($moments as $moment) {
         $momentObject = new Moment\Moment();
         $momentObject->loadFromResponse($moment);
         $this->addMoment($momentObject);
     }
 }
Example #2
0
 public function setMomentsFeed($momentsFeed)
 {
     foreach ($momentsFeed as $momentInFeed) {
         $momentObject = new Moment();
         $momentObject->loadFromResponse($momentInFeed);
         $this->addMomentInFeed($momentObject);
     }
 }