/** * 处理方法 */ public function doHandle($context) { if (!isset($this->handle)) { return null; } return $this->handle->doHandle($context); }
public function doHandle($context) { $result = parent::doHandle($context + 1); if (empty($result)) { return $result = ['Example' . $context]; } $result[] = 'Example' . $context; return $result; }