<?php
/**
 * Bulk Run Agent Interface
 * This interface needs to be implemented by agents that can be run in bulk.
 *
 * @package SAAI\Interfaces
 */

namespace SAAI\Interfaces;

interface Bulk_Run_Agent_Interface {

    /**
     * Run the agent query.
     *
     * @param array $params The parameters for the agent query.
     * @return array|\WP_Error
     */
    public function run_agent_query( $params = array() );

    /**
     * Save the object data.
     *
     * @param mixed $obj The object or the ID of the object.
     * @param mixed $data The data to save.
     * @return \WP_Error|bool
     */
    public function save_object_data( $obj, $data );
}
