1<?php 2 3class MockApi extends ApiBase { 4 public $warnings = []; 5 6 public function execute() { 7 } 8 9 public function __construct() { 10 } 11 12 public function getModulePath() { 13 return $this->getModuleName(); 14 } 15 16 public function addWarning( $warning, $code = null, $data = null ) { 17 $this->warnings[] = $warning; 18 } 19 20 public function getAllowedParams() { 21 return [ 22 'filename' => null, 23 'enablechunks' => false, 24 'sessionkey' => null, 25 ]; 26 } 27} 28