public static function createMany(array $input)
    {
        $errors = new ErrorCollection();

        foreach ($input as $item) {
            $errors->add(self::create($item));
        }

        return $errors;
    }
public static function createMany(array $input)
    {
        $errors = new ErrorCollection();

        foreach ($input as $item) {
            $errors->add(self::create($item));
        }

        return $errors;
    }
public static function createMany ( array $ input ) { $ errors = new ErrorCollection ( ) ; foreach ( $ input as $ item ) { $ errors -> add ( self :: create ( $ item ) ) ; } return $ errors ; }
Create an error collection from an array of error arrays.

@param array $input
@return ErrorCollection
Create an error collection from an array of error arrays .