package Ġcom . ait or . sample market . domain . use case Ċ Ċ import Ġcom . ait or . sample market . domain . model . Product Ċ import Ġcom . ait or . sample market . domain . repository . Cart Repository Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠAdd Item To Cart Ġ@ Inject Ġconstructor ( private Ġval Ġcart Repository : ĠCart Repository ) Ġ{ ĊĊĠĠĠ Ġoperator Ġfun Ġinvoke ( product : ĠProduct , Ġamount : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcart Repository . addItem To Cart ( product , Ġamount ) ĊĠĠĠ Ġ} Ċ }