Пример #1
0
 /**
  * Returns the repository paths of all path mappings.
  *
  * @return string[] The repository paths of the stored mappings.
  */
 public function getRepositoryPaths()
 {
     if ($this->primaryKeysSorted) {
         $this->lazySortPrimaryKeys();
     }
     return $this->map->getPrimaryKeys();
 }
 public function testGetPrimaryKeys()
 {
     $this->map->set('foo', 'bar', 'value1');
     $this->map->set('foo', 'baz', 'value2');
     $this->map->set('foo', 'bam', 'value3');
     $this->map->set('bar', 'boo', 'value4');
     $this->assertSame(array('foo', 'bar'), $this->map->getPrimaryKeys());
 }
 /**
  * Returns the names of all type descriptors.
  *
  * @return string[] The names of the stored types.
  */
 public function getTypeNames()
 {
     return $this->map->getPrimaryKeys();
 }