<?php
namespace App\Bsp; class BspRowPrice { public $amount = null; public $currency = null; public function clampValue() { if ($this->amount!==null) { $this->amount = round($this->amount, 6)+0; } return $this; } public function invertSign() { if ($this->amount!==null) { $this->amount = -1*$this->amount; } return $this; } } 