getName()) { throw new InvalidArgumentException('MockConfiguration must contain a name'); } $this->config = $config; $this->code = $code; } public function getClassName() { return $this->config->getName(); } public function getCode() { return $this->code; } public function getConfig() { return $this->config; } }