public function validate( $input ) 
    {
        if ( !is_array( $input ) ) 
        {
            throw new phpillowValidationException( 
                "Field is not an array",
                array()
            );
        }

        // Reuse the parent object validator foreach of the embedded objects
        foreach( $input as $key => $object ) 
        {
            $input[$key] = parent::validate( $object );
        }

        return $input;
    }
public function validate( $input ) 
    {
        if ( !is_array( $input ) ) 
        {
            throw new phpillowValidationException( 
                "Field is not an array",
                array()
            );
        }

        // Reuse the parent object validator foreach of the embedded objects
        foreach( $input as $key => $object ) 
        {
            $input[$key] = parent::validate( $object );
        }

        return $input;
    }
public function validate ( $ input ) { if ( ! is_array ( $ input ) ) { throw new phpillowValidationException ( "Field is not an array" , array ( ) ) ; } // Reuse the parent object validator foreach of the embedded objects foreach ( $ input as $ key => $ object ) { $ input [ $ key ] = parent :: validate ( $ object ) ; } return $ input ; }
Validate input to be an array of objects

@param array $input
@return array
Validate input to be an array of objects