public function firstCall() { if (isset($this->calls[0])) { return $this->calls[0]; } throw new UndefinedCallException(0); }