public function add(Flow $flow) { $this[] = $flow; $this->amount = $flow->calcAmount($this->amount); }