PHP 8.3.31
Preview: AuthorCollection.php Size: 1.02 KB
/home/getspomw/royalsquad.us/vendor/phar-io/manifest/src/values/AuthorCollection.php

<?php declare(strict_types = 1);
/*
 * This file is part of PharIo\Manifest.
 *
 * Copyright (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de> and contributors
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 */
namespace PharIo\Manifest;

use Countable;
use IteratorAggregate;
use function count;

/** @template-implements IteratorAggregate<int,Author> */
class AuthorCollection implements Countable, IteratorAggregate {
    /** @var Author[] */
    private $authors = [];

    public function add(Author $author): void {
        $this->authors[] = $author;
    }

    /**
     * @return Author[]
     */
    public function getAuthors(): array {
        return $this->authors;
    }

    public function count(): int {
        return count($this->authors);
    }

    public function getIterator(): AuthorCollectionIterator {
        return new AuthorCollectionIterator($this);
    }
}

Directory Contents

Dirs: 0 × Files: 22

Name Size Perms Modified Actions
504 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
1.15 KB lrw-rw-rw- 2025-09-17 06:53:36
Edit Download
1.27 KB lrw-rw-rw- 2025-09-17 06:53:36
Edit Download
1.02 KB lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
1.13 KB lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
840 B lrw-rw-rw- 2025-09-17 06:53:36
Edit Download
1.16 KB lrw-rw-rw- 2025-09-17 06:53:36
Edit Download
1.25 KB lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
860 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
912 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
8.38 KB lrw-r--r-- 2026-04-26 10:05:32
Edit Download
1.40 KB lrw-rw-rw- 2025-09-17 06:53:36
Edit Download
496 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
764 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
2.54 KB lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
682 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
804 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
424 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
1.09 KB lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
1.19 KB lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
1.16 KB lrw-rw-rw- 2025-09-17 06:53:37
Edit Download
939 B lrw-rw-rw- 2025-09-17 06:53:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).