Exemple #1
0
 /**
  * @param int         $page
  * @param LeadsSortBy $sortBy
  *
  * @return ResourceCollection
  */
 public function all($page = 1, LeadsSortBy $sortBy = null)
 {
     $query = [];
     if (null !== $sortBy) {
         $query['sort_by'] = $sortBy->getValue();
     }
     return parent::getPage($page, $query);
 }
Exemple #2
0
 /**
  * @param int $page
  *
  * @return Page
  */
 public function all($page = 1)
 {
     return parent::getPage($page);
 }
Exemple #3
0
 /**
  * @param int       $page
  * @param DealStage $stage defaults to DealStage::INCOMING
  *
  * @return Page
  */
 public function all($page = 1, DealStage $stage = null)
 {
     $stage = $stage ?: DealStage::INCOMING();
     $query = ['stage' => $stage->getValue()];
     return parent::getPage($page, $query);
 }