protected function getFieldsAsArrays()
    {
        $fields = [];

        foreach ($this->getFields() as $field) {
            $fields[] = $field->toArray();
        }

        return $fields;
    }
protected function getFieldsAsArrays()
    {
        $fields = [];

        foreach ($this->getFields() as $field) {
            $fields[] = $field->toArray();
        }

        return $fields;
    }
protected function getFieldsAsArrays ( ) { $ fields = [ ] ; foreach ( $ this -> getFields ( ) as $ field ) { $ fields [ ] = $ field -> toArray ( ) ; } return $ fields ; }
Iterates over all fields in this attachment and returns
them in their array form.

@return array
Iterates over all fields in this attachment and returns them in their array form .