Skip to content

Dva a více balíků #73

Answered by Salamek
mpavelcz asked this question in Q&A
Nov 21, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Je to napsane primo v te error message, 15 argument Salamek\PplMyApi\Model\Package::__construct() je typu Salamek\PplMyApi\Model\IPackageSet a vy tam davate int...

Zhruba nejak takhle:

use Salamek\PplMyApi\Model\PackageSet;
use Salamek\PplMyApi\Model\Package;

$mainPackageNumber = 'MAIN_PACKAGE_NUMBER';
$packageSet = new PackageSet($mainPackageNumber, 1, 2); // For constructor parameters see https://github.com/Salamek/PplMyApi/blob/master/src/Model/PackageSet.php
$package = new Package($mainPackageNumber, Product::PPL_PARCEL_CZ_PRIVATE, 'Testovaci balik', $recipient, $cityRouting, null, null, null, null, [], [], [], null, null, $packageSet);

$packageSet->setPackagePosition(2);
$package2 = 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mpavelcz
Comment options

Answer selected by Salamek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants