File/src/File.php
public static function instance($filename)
    {
        if (!\is_string($filename) && $filename) {
            throw new \InvalidArgumentException('Filename should be non-empty string');
        }
        if (!isset(static::$instances[$filename])) {
            static::$instances[$filename] = new static;
            static::$instances[$filename]->init($filename);
        }
        return static::$instances[$filename];
    }
public static function instance($filename)
    {
        if (!\is_string($filename) && $filename) {
            throw new \InvalidArgumentException('Filename should be non-empty string');
        }
        if (!isset(static::$instances[$filename])) {
            static::$instances[$filename] = new static;
            static::$instances[$filename]->init($filename);
        }
        return static::$instances[$filename];
    }
public static function instance ( $ filename ) { if ( ! \ is_string ( $ filename ) && $ filename ) { throw new \ InvalidArgumentException ( 'Filename should be non-empty string' ) ; } if ( ! isset ( static :: $ instances [ $ filename ] ) ) { static :: $ instances [ $ filename ] = new static ; static :: $ instances [ $ filename ] -> init ( $ filename ) ; } return static :: $ instances [ $ filename ] ; }
Get file instance.

@param  string  $filename
@return static
Get file instance .