public function getCacheFile(callable $encoder = null): string
    {
        if (\is_null($encoder)) {
            $encoder = function ($value): string {
                return var_export($value, true);
            };
        }

        $this->loadCacheParameters();
        ksort($this->entries);
        $encoded = $encoder($this->entries);

        return <<<TEMPLATE
<?php return new class extends \Simply\Container\Container {
    protected \$entries = $encoded;
};
TEMPLATE;
    }
public function getCacheFile(callable $encoder = null): string
    {
        if (\is_null($encoder)) {
            $encoder = function ($value): string {
                return var_export($value, true);
            };
        }

        $this->loadCacheParameters();
        ksort($this->entries);
        $encoded = $encoder($this->entries);

        return <<<TEMPLATE
<?php return new class extends \Simply\Container\Container {
    protected \$entries = $encoded;
};
TEMPLATE;
    }
public function getCacheFile ( callable $ encoder = null ) : string { if ( \ is_null ( $ encoder ) ) { $ encoder = function ( $ value ) : string { return var_export ( $ value , true ) ; } ; } $ this -> loadCacheParameters ( ) ; ksort ( $ this -> entries ) ; $ encoded = $ encoder ( $ this -> entries ) ; return  <<<TEMPLATE
<?php return new class extends \Simply\Container\Container {
    protected \$entries = $encoded;
};
TEMPLATE ; }
Returns PHP code for a cached container that can be loaded quickly on runtime.
@param callable $encoder Encoder to turn the cached entry data into PHP code or null for default
@return string The PHP code for the cached container
@throws ContainerException If the container contains entries that cannot be cached
Returns PHP code for a cached container that can be loaded quickly on runtime .