public function get($name)
    {
        if (isset($this->files[$name])) {
            return [$this->files[$name]];
        }

        $results = [];
        foreach ($this->files as $key => $file) {
            if (strpos($key, "{$name}[") === 0) {
                $results[] = $file;
            }
        }

        return $results;
    }
public function get($name)
    {
        if (isset($this->files[$name])) {
            return [$this->files[$name]];
        }

        $results = [];
        foreach ($this->files as $key => $file) {
            if (strpos($key, "{$name}[") === 0) {
                $results[] = $file;
            }
        }

        return $results;
    }
public function get ( $ name ) { if ( isset ( $ this -> files [ $ name ] ) ) { return [ $ this -> files [ $ name ] ] ; } $ results = [ ] ; foreach ( $ this -> files as $ key => $ file ) { if ( strpos ( $ key , "{$name}[" ) === 0 ) { $ results [ ] = $ file ; } } return $ results ; }
Returns files by its name.

@param $name
@return File[]
Returns files by its name .