public function __construct(User $user, array $oldGroups, User $actor = null) { $this->user = $user; $this->oldGroups = $oldGroups; $this->actor = $actor; }