Files
journal/application/master/service/push/PusherInterface.php

31 lines
649 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace app\master\service\push;
/**
* 数据库推送器接口
* 每个学术数据库Portico / Scopus / EBSCO / CNKI / 邮件送交...)实现一个推送器。
*/
interface PusherInterface
{
/**
* 渠道唯一标识
* @return string
*/
public function code();
/**
* 展示名
* @return string
*/
public function label();
/**
* 推送整期
* @param int $stageId 分期id
* @param array $options 渠道额外配置(来自 j_db_channel.config 或默认配置)
* @return PushResult
*/
public function pushStage($stageId, array $options = []);
}