Bristol SU Support Package
|
Public Member Functions | |
generate (Activity $activity, string $resourceType, string $resourceId) | |
Get the default activity instance for the given parameters.
Definition at line 11 of file DefaultActivityInstanceGenerator.php.
BristolSU\Support\ActivityInstance\Contracts\DefaultActivityInstanceGenerator::generate | ( | Activity | $activity, |
string | $resourceType, | ||
string | $resourceId | ||
) |
Get the default activity instance with the given parameters.
This function should either find an activity instance, or create one if not found.
Activity | $activity | Activity to which the activity instance should belong. |
string | $resourceType | Resource type. One of user, group or role. |
string | $resourceId | Resource ID. ID of the user/group/role who owns the activity instance. |
Implemented in BristolSU\Support\ActivityInstance\DefaultActivityInstanceGenerator.