Aggiornato Composer
This commit is contained in:
@@ -2,14 +2,20 @@
|
||||
/*
|
||||
* This file is part of PharIo\Manifest.
|
||||
*
|
||||
* (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
|
||||
* 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;
|
||||
|
||||
class AuthorCollection implements \Countable, \IteratorAggregate {
|
||||
use Countable;
|
||||
use IteratorAggregate;
|
||||
use function count;
|
||||
|
||||
/** @template-implements IteratorAggregate<int,Author> */
|
||||
class AuthorCollection implements Countable, IteratorAggregate {
|
||||
/** @var Author[] */
|
||||
private $authors = [];
|
||||
|
||||
@@ -25,7 +31,7 @@ class AuthorCollection implements \Countable, \IteratorAggregate {
|
||||
}
|
||||
|
||||
public function count(): int {
|
||||
return \count($this->authors);
|
||||
return count($this->authors);
|
||||
}
|
||||
|
||||
public function getIterator(): AuthorCollectionIterator {
|
||||
|
||||
Reference in New Issue
Block a user