Folder::content PHP Метод

content() публичный Метод

Returns a collection with full File and Directory objects for each item in the directory
public content ( array $ignore = null ) : Collection
$ignore array
Результат Collection
    public function content($ignore = null)
    {
        $raw = $this->scan($ignore);
        $root = $this->root;
        $content = new Collection();
        foreach ($raw as $file) {
            if (is_dir($root . DS . $file)) {
                $content->append($file, new static($root . DS . $file));
            } else {
                $content->append($file, new Media($root . DS . $file));
            }
        }
        return $content;
    }