@@ -43,39 +43,7 @@ class LicenseService
4343 * @throws MalformedArgumentsException
4444 * @throws RestException
4545 */
46- /**
47- * @deprecated since version X.X. Use createWithTransaction() with the new parameter order instead.
48- *
49- * Creates new license object with given properties.
50- *
51- * @param Context $context
52- * @param string $licenseeNumber
53- * @param string $licenseTemplateNumber
54- * @param null|string $transactionNumber
55- * @param License $license
56- * @return License|null
57- * @throws MalformedArgumentsException
58- * @throws RestException
59- */
60- public static function create (Context $ context , string $ licenseeNumber , string $ licenseTemplateNumber , ?string $ transactionNumber , License $ license ): ?License
61- {
62- // Call the new method with the correct parameter order
63- return self ::createWithTransaction ($ context , $ licenseeNumber , $ licenseTemplateNumber , $ license , $ transactionNumber );
64- }
65-
66- /**
67- * Creates new license object with given properties. Preferred method.
68- *
69- * @param Context $context
70- * @param string $licenseeNumber
71- * @param string $licenseTemplateNumber
72- * @param License $license
73- * @param null|string $transactionNumber
74- * @return License|null
75- * @throws MalformedArgumentsException
76- * @throws RestException
77- */
78- public static function createWithTransaction (Context $ context , string $ licenseeNumber , string $ licenseTemplateNumber , License $ license , ?string $ transactionNumber = null ): ?License
46+ public static function create (Context $ context , string $ licenseeNumber , string $ licenseTemplateNumber , License $ license , ?string $ transactionNumber = null ): ?License
7947 {
8048 CheckUtils::paramNotEmpty ($ licenseeNumber , Constants::LICENSEE_NUMBER );
8149 CheckUtils::paramNotEmpty ($ licenseTemplateNumber , Constants::LICENSE_TEMPLATE_NUMBER );
0 commit comments