Imbo\Model\Groups::getData PHP Method

getData() public method

public getData ( )
    public function getData()
    {
        return ['groups' => $this->getGroups(), 'count' => $this->getCount(), 'hits' => $this->getHits(), 'limit' => $this->getLimit(), 'page' => $this->getPage()];
    }

Usage Example

Beispiel #1
0
 /**
  * @covers Imbo\Model\Groups::getData
  */
 public function testGetData()
 {
     $this->model->setGroups(['group' => [], 'group2' => []])->setHits(10)->setPage(10)->setLimit(10);
     $this->assertSame(['groups' => ['group' => [], 'group2' => []], 'count' => 2, 'hits' => 10, 'limit' => 10, 'page' => 10], $this->model->getData());
 }