DataSift\Storyplayer\ConfigLib\HardCodedList::getConfigs PHP Method

getConfigs() public method

return our list of configs
public getConfigs ( ) : array
return array
    public function getConfigs()
    {
        return $this->configs;
    }

Usage Example

 /**
  * @covers DataSift\Storyplayer\ConfigLib\HardCodedList::__construct
  * @covers DataSift\Storyplayer\ConfigLib\HardCodedList::addConfig
  * @covers DataSift\Storyplayer\ConfigLib\HardCodedList::getConfigs
  */
 public function testCanAddNewConfig()
 {
     // ----------------------------------------------------------------
     // setup the test
     $expectedName = 'test-config';
     $obj = new HardCodedList('DataSift\\Storyplayer\\ConfigLib\\WrappedConfig');
     // ----------------------------------------------------------------
     // perform the change
     $config = new WrappedConfig();
     $config->setName($expectedName);
     $obj->addConfig($config);
     // ----------------------------------------------------------------
     // test the results
     $configs = $obj->getConfigs();
     $this->assertTrue(isset($configs[$expectedName]));
     $this->assertSame($configs[$expectedName], $config);
 }
All Usage Examples Of DataSift\Storyplayer\ConfigLib\HardCodedList::getConfigs