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

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

        if (is_array($input) || $input instanceof ArrayObject) {
            return static::toList($input);
        }

        throw new CoreException('Unable to build Functor');
    }
public static function toFunctor($input)
    {
        Arguments::define(Boa::leftFoldable())->check($input);

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

        if (is_array($input) || $input instanceof ArrayObject) {
            return static::toList($input);
        }

        throw new CoreException('Unable to build Functor');
    }
public static function toFunctor ( $ input ) { Arguments :: define ( Boa :: leftFoldable ( ) ) -> check ( $ input ) ; if ( $ input instanceof FunctorInterface ) { return $ input ; } if ( is_array ( $ input ) || $ input instanceof ArrayObject ) { return static :: toList ( $ input ) ; } throw new CoreException ( 'Unable to build Functor' ) ; }
Wrap the provided value inside a Functor.

@param array|ArrayObject|Traversable|FunctorInterface $input

@return ArrayList|TraversableLeftFoldable
@throws CoreException
Wrap the provided value inside a Functor .