Imbo\Model\Groups::getCount PHP Метод

getCount() публичный Метод

Get the number of groups
public getCount ( ) : integer
Результат integer
    public function getCount()
    {
        return count($this->groups);
    }

Usage Example

Пример #1
0
 /**
  * @covers Imbo\Model\Groups::getCount
  */
 public function testCanCountImages()
 {
     $this->assertSame(0, $this->model->getCount());
     $this->assertSame($this->model, $this->model->setGroups(['group1' => [], 'group2' => []]));
     $this->assertSame(2, $this->model->getCount());
 }
All Usage Examples Of Imbo\Model\Groups::getCount