public function createChild(Transaction\TransactionType $type, $amount = null)
    {
        $child = new Transaction($this);
        $child->setType($type);
        $child->setAmount($amount ?: $this->amount);
        $this->children->add($child);

        return $child;
    }