public function total() { if ($this->simple) { throw new \DomainException('not support total'); } return $this->total; }