public function setEffects(array $effects)
    {
        // Amount is now optionnal.
        $this->amount = isset($effects['amount']) ? $effects['amount'] : 0;

        $this->effects = $effects;
    }