芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/vendor/twilio/sdk/src/Twilio/TaskRouter/WorkflowRuleTarget.php
* @license http://creativecommons.org/licenses/MIT/ MIT */ class WorkflowRuleTarget implements \JsonSerializable { public $queue; public $expression; public $priority; public $timeout; public function __construct($queue, $priority = null, $timeout = null, $expression = null) { $this->queue = $queue; $this->priority = $priority; $this->timeout = $timeout; $this->expression = $expression; } public function jsonSerialize() { $json = array(); $json["queue"] = $this->queue; if($this->priority != null) { $json["priority"] = $this->priority; } if($this->timeout != null) { $json["timeout"] = $this->timeout; } if($this->expression != null) { $json["expression"] = $this->expression; } return $json; } }