original_string: public function setCashItems($items)
      {
          $this->params['cashItems'] = base64_encode(
              json_encode(
                  array_map(function ($item) {
                      /** @var CashItem $item */
                      return array(
                          'name'  => $item->getName(),
                          'count' => $item->getCount(),
                          'price' => $item->getPrice()
                      );
                  }, $items)));
  
          return $this;
      }
code: public function setCashItems($items)
      {
          $this->params['cashItems'] = base64_encode(
              json_encode(
                  array_map(function ($item) {
                      /** @var CashItem $item */
                      return array(
                          'name'  => $item->getName(),
                          'count' => $item->getCount(),
                          'price' => $item->getPrice()
                      );
                  }, $items)));
  
          return $this;
      }
code_tokens: public function setCashItems ( $ items ) { $ this -> params [ 'cashItems' ] = base64_encode ( json_encode ( array_map ( function ( $ item ) { /** @var CashItem $item */ return array ( 'name' => $ item -> getName ( ) , 'count' => $ item -> getCount ( ) , 'price' => $ item -> getPrice ( ) ) ; } , $ items ) ) ) ; return $ this ; }
docstring: Set list of paid goods
  
  @param CashItem[] $items
  
  @return UnitPay
docstring_tokens: Set list of paid goods