| Total Complexity | 5 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | abstract class AbstractModule implements ModuleInterface |
||
| 26 | { |
||
| 27 | /** @var \ElkArte\HttpReq|null Access to post/get data */ |
||
| 28 | protected $_req; |
||
| 29 | |||
| 30 | /** @var \ElkArte\UserInfo|null User Info ValuesContainer */ |
||
| 31 | protected $user; |
||
| 32 | |||
| 33 | /** @var \ElkArte\EventManager|null Events for all our fans! */ |
||
| 34 | protected $event; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * AbstractModule constructor. |
||
| 38 | * |
||
| 39 | * @param \ElkArte\HttpReq $req |
||
| 40 | * @param \ElkArte\UserInfo $user |
||
| 41 | */ |
||
| 42 | public function __construct(HttpReq $req, UserInfo $user) |
||
| 43 | { |
||
| 44 | $this->_req = $req; |
||
| 45 | $this->user = $user; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Sets the event manager. |
||
| 50 | * |
||
| 51 | * @param \ElkArte\EventManager $event |
||
| 52 | */ |
||
| 53 | public function setEventManager(EventManager $event) |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Helper function to see if a request is asking for any api processing |
||
| 60 | * |
||
| 61 | * @return string|false |
||
| 62 | */ |
||
| 63 | public function getApi() |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.