Prado\Collections\TPriorityMap::getPrecision PHP Method

getPrecision() public method

public getPrecision ( ) : integer
return integer The precision of numeric priorities, defaults to 8
    public function getPrecision()
    {
        return $this->_p;
    }

Usage Example

Esempio n. 1
0
 public function testConstruct()
 {
     $a = array(1, 2, 'key3' => 3);
     $map = new TPriorityMap($a);
     $this->assertEquals(3, $map->getCount());
     $map2 = new TPriorityMap($this->map);
     $this->assertEquals(2, $map2->getCount());
     /* Test the priority functionality of TPriorityMap  */
     $map3 = new TPriorityMap($this->map, false, 100, -1);
     $this->assertEquals(100, $map3->getDefaultPriority());
     $this->assertEquals(-1, $map3->getPrecision());
 }