public function getEffects($data)
    {
        $effects = [];

        foreach ($this->getFieldList() as $fieldName) {
            $effects[$fieldName] = $this->getCouponFieldValue($fieldName, $data);
        }

        return $effects;
    }
public function getEffects($data)
    {
        $effects = [];

        foreach ($this->getFieldList() as $fieldName) {
            $effects[$fieldName] = $this->getCouponFieldValue($fieldName, $data);
        }

        return $effects;
    }
public function getEffects ( $ data ) { $ effects = [ ] ; foreach ( $ this -> getFieldList ( ) as $ fieldName ) { $ effects [ $ fieldName ] = $ this -> getCouponFieldValue ( $ fieldName , $ data ) ; } return $ effects ; }
Create the effect array from the list of fields

@param  array $data the input form data (e.g. $form->getData())
@return array a filedName => fieldValue array
Create the effect array from the list of fields