Example #1
0
 /**
  * Get the available resource groups
  *
  * @param Query $query An optional query object
  * @return Model
  */
 public function getResourceGroups(Query $query = null)
 {
     if (!$query) {
         $query = new Query();
     }
     return $this->getCommand('GetResourceGroups', array('page' => $query->page(), 'limit' => $query->limit()))->execute();
 }
Example #2
0
 public function testCanSetAndGetTheLimit()
 {
     $this->assertSame(20, $this->query->limit());
     $this->assertSame($this->query, $this->query->limit(10));
     $this->assertSame(10, $this->query->limit());
 }