private function applyCall($name, $args = []) { if (!isset($this->calls[$name])) { $this->calls[$name] = []; } $this->calls[$name][] = $args; }