<?php
class CreatePaymentRequestLightbox{
private $pedido_total = 0;
public function editarPedidoTotal($pedido_total){
$this->pedido_total = $pedido_total;
}
public function main(){
echo $this->pedido_total;
}
}
$valortotal = 15.00;
$paymentRequest = new CreatePaymentRequestLightbox();
$paymentRequest->editarPedidoTotal($valortotal);
$paymentRequest->main();
PD9waHAKCmNsYXNzIENyZWF0ZVBheW1lbnRSZXF1ZXN0TGlnaHRib3h7Cglwcml2YXRlICRwZWRpZG9fdG90YWwgPSAwOwoJCglwdWJsaWMgZnVuY3Rpb24gZWRpdGFyUGVkaWRvVG90YWwoJHBlZGlkb190b3RhbCl7CgkJJHRoaXMtPnBlZGlkb190b3RhbCA9ICRwZWRpZG9fdG90YWw7Cgl9CglwdWJsaWMgZnVuY3Rpb24gbWFpbigpewoJCWVjaG8gJHRoaXMtPnBlZGlkb190b3RhbDsKCX0KfQoKJHZhbG9ydG90YWwgPSAxNS4wMDsKJHBheW1lbnRSZXF1ZXN0ID0gbmV3IENyZWF0ZVBheW1lbnRSZXF1ZXN0TGlnaHRib3goKTsKJHBheW1lbnRSZXF1ZXN0LT5lZGl0YXJQZWRpZG9Ub3RhbCgkdmFsb3J0b3RhbCk7CiRwYXltZW50UmVxdWVzdC0+bWFpbigpOw==