customer = $customer; return $this; } public function register(string $genre, string $ask) { if ($this->customer === null) { throw new LogicException("顧客NULL"); } $this->model->set(Ask::FIELD_ASK_DATETIME, DateUtil::now()); $this->model->set(Ask::FIELD_GENRE, $genre); $this->model->set(Ask::FIELD_ASK, $ask); $this->model->set(Ask::FIELD_CUSTOMER_CODE, $this->customer->getStr(Customer::FIELD_CUSTOMER_CODE)); $this->model->getAccess() ->addAppToken(Customer::class) ->create($this->model); } }