Prado\Collections\TMap::getCount PHP Метод

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

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

Usage Example

Пример #1
0
 public function testConstruct()
 {
     $a = array(1, 2, 'key3' => 3);
     $map = new TMap($a);
     $this->assertEquals(3, $map->getCount());
     $map2 = new TMap($this->map);
     $this->assertEquals(2, $map2->getCount());
 }