__toString(), $type, $subtype, $module, $ref, $content); AuditMapper::create($audit); } public function apiLogUpdate( Account $account, $old, $new, int $type = 0, int $subtype = 0, string $module = null, string $ref = null, string $content = null ) : void { $audit = new Audit($account, $old->__toString(), $new->__toString(), $type, $subtype, $module, $ref, $content); AuditMapper::create($audit); } public function apiLogDelete( Account $account, $old, $new, int $type = 0, int $subtype = 0, string $module = null, string $ref = null, string $content = null ) : void { $audit = new Audit($account, $new->__toString(), null, $type, $subtype, $module, $ref, $content); AuditMapper::create($audit); } }