upgrade to laravel 7 and set branch to v2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php declare(strict_types = 1);
|
||||
/*
|
||||
* This file is part of PharIo\Manifest.
|
||||
*
|
||||
@@ -7,37 +7,28 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace PharIo\Manifest;
|
||||
|
||||
class RequirementCollection implements \Countable, \IteratorAggregate {
|
||||
/**
|
||||
* @var Requirement[]
|
||||
*/
|
||||
/** @var Requirement[] */
|
||||
private $requirements = [];
|
||||
|
||||
public function add(Requirement $requirement) {
|
||||
public function add(Requirement $requirement): void {
|
||||
$this->requirements[] = $requirement;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Requirement[]
|
||||
*/
|
||||
public function getRequirements() {
|
||||
public function getRequirements(): array {
|
||||
return $this->requirements;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function count() {
|
||||
return count($this->requirements);
|
||||
public function count(): int {
|
||||
return \count($this->requirements);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RequirementCollectionIterator
|
||||
*/
|
||||
public function getIterator() {
|
||||
public function getIterator(): RequirementCollectionIterator {
|
||||
return new RequirementCollectionIterator($this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user