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());
 }