src/SellerLabs/Nucleus/Data/Factories/ComplexFactory.php
public static function toList($input)
    {
        Arguments::define(Boa::lst())->check($input);

        if ($input instanceof ListInterface) {
            return $input;
        }

        return ArrayList::of($input);
    }
public static function toList($input)
    {
        Arguments::define(Boa::lst())->check($input);

        if ($input instanceof ListInterface) {
            return $input;
        }

        return ArrayList::of($input);
    }
public static function toList ( $ input ) { Arguments :: define ( Boa :: lst ( ) ) -> check ( $ input ) ; if ( $ input instanceof ListInterface ) { return $ input ; } return ArrayList :: of ( $ input ) ; }
Wrap provided value inside a List.

@param array|ArrayObject|ListInterface $input

@return ArrayList
@throws InvalidArgumentException
Wrap provided value inside a List .