Constructor.
array $passes An array of RepeatablePassInterface objects:
InvalidArgumentException if a pass is not a RepeatablePassInterface instance
public function __construct(array $passes) {
foreach ($passes as $pass) {
if (!$pass instanceof RepeatablePassInterface) {
throw new InvalidArgumentException('$passes must be an array of RepeatablePassInterface.');
}
$pass
->setRepeatedPass($this);
}
$this->passes = $passes;
}