Prado\Collections\TPriorityMap::getReadOnly PHP Метод

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

public getReadOnly ( ) : boolean
Результат boolean whether this map is read-only or not. Defaults to false.
    public function getReadOnly()
    {
        return $this->_r;
    }

Usage Example

Пример #1
0
 public function testGetReadOnly()
 {
     $map = new TPriorityMap(null, true);
     self::assertEquals(true, $map->getReadOnly(), 'List is not read-only');
     $map = new TList(null, false);
     self::assertEquals(false, $map->getReadOnly(), 'List is read-only');
 }