Flintstone\Config::getExt PHP Method

getExt() public method

Get the ext.
public getExt ( ) : string
return string
    public function getExt()
    {
        if ($this->useGzip()) {
            return $this->config['ext'] . '.gz';
        }
        return $this->config['ext'];
    }

Usage Example

Example #1
0
 public function testConfigConstructorOptions()
 {
     $config = new Config(array('dir' => __DIR__, 'ext' => 'test', 'gzip' => true, 'cache' => false, 'formatter' => null, 'swap_memory_limit' => 100));
     $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR, $config->getDir());
     $this->assertEquals('.test.gz', $config->getExt());
     $this->assertTrue($config->useGzip());
     $this->assertFalse($config->getCache());
     $this->assertInstanceOf('Flintstone\\Formatter\\SerializeFormatter', $config->getFormatter());
     $this->assertEquals(100, $config->getSwapMemoryLimit());
 }
All Usage Examples Of Flintstone\Config::getExt