Example #1
0
 /**
  * 
  * @param int $id
  * @return boolean
  */
 public function regenerate($id = 0)
 {
     if (!$id) {
         throw new InvalidArgumentException();
     }
     $this->data['id'] = $id;
     $request = Http::get('listings/' . __FUNCTION__, $this->data);
     $response = $request->getBody();
     return $response->code == Network\Response::SUCCESS_CODE ? true : false;
 }
 /**
  * @return array
  */
 public function all()
 {
     $request = Http::get(self::PATH, $this->data);
     return $request->getBody();
 }