PhpOffice\PhpPresentation\HashTable::count PHP Method

count() public method

Count
public count ( ) : integer
return integer
    public function count()
    {
        return count($this->items);
    }

Usage Example

Example #1
0
 /**
  */
 public function testConstructSource()
 {
     $object = new HashTable(array(new Slide(), new Slide()));
     $this->assertEquals(2, $object->count());
     $this->assertInternalType('array', $object->toArray());
     $this->assertCount(2, $object->toArray());
 }