Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow template classes for contributions #22340

Merged
merged 2 commits into from
Dec 31, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Add workflow template classes for contributions

Before

A big void

After

Tada

Technical Details

These aren't doing much of anyting yet - but they set up the structure - which will allow us to start to add in values to the trait (& remove some of those issets which mess with escaping)

Comments

@civibot
Copy link

civibot bot commented Dec 29, 2021

(Standard links)

@civibot civibot bot added the master label Dec 29, 2021
/**
* @method array getContribution()
* @method array getContact()
* @method $this setContact(array $contact)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree this PR looks safe / consistent / starting-place for other revisions. 👍

I was about to hit "Merge" but then wondered about this fragment - contact is a property of GenericWorkflowMessage not ContributionTrait.

There is another property in this trait, contributionId -- should it reference that instead?

 * @method ?int getContributionId()
 * @method $this setContributionId(?int $contributionId)

@eileenmcnaughton
Copy link
Contributor Author

@totten you are right - I just updated to use contribution ID & updated one variable in one template to rely on that (plus test) to verify it

@eileenmcnaughton
Copy link
Contributor Author

opps thanks @totten

@eileenmcnaughton
Copy link
Contributor Author

Test fail is unrelated (date calc on the cusp of the new year - already started badly!)

@eileenmcnaughton eileenmcnaughton merged commit 29cc02c into civicrm:master Dec 31, 2021
@eileenmcnaughton eileenmcnaughton deleted the wktemplates branch December 31, 2021 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants