• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sanmai / shipandco-sdk / 19461631584

18 Nov 2025 09:49AM UTC coverage: 91.489% (-8.5%) from 100.0%
19461631584

push

github

web-flow
Add carrier registration support (#43)

2 of 6 new or added lines in 3 files covered. (33.33%)

43 of 47 relevant lines covered (91.49%)

9.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Requests/Types/Carrier/Settings.php
1
<?php
2
/**
3
 * This code is licensed under the MIT License.
4
 *
5
 * Copyright (c) 2020 Alexey Kopytko <alexey@kopytko.com>
6
 *
7
 * Permission is hereby granted, free of charge, to any person obtaining a copy
8
 * of this software and associated documentation files (the "Software"), to deal
9
 * in the Software without restriction, including without limitation the rights
10
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
 * copies of the Software, and to permit persons to whom the Software is
12
 * furnished to do so, subject to the following conditions:
13
 *
14
 * The above copyright notice and this permission notice shall be included in
15
 * all copies or substantial portions of the Software.
16
 *
17
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
 * THE SOFTWARE.
24
 */
25

26
declare(strict_types=1);
27

28
namespace ShipAndCoSDK\Requests\Types\Carrier;
29

30
use CommonSDK\Concerns\ObjectPropertyRead;
31
use CommonSDK\Concerns\PropertyWrite;
32
use CommonSDK\Contracts\ReadableRequestProperty;
33
use JMS\Serializer\Annotation as JMS;
34
use ShipAndCoSDK\Common\Carrier\Settings as CommonSettings;
35

36
/**
37
 * @property-write string|null $scheduled_delivery_email
38
 * @property-read SettingsPrint $print
39
 * @property-read SettingsLabel $label
40
 */
41
final class Settings extends CommonSettings implements ReadableRequestProperty
42
{
43
    use PropertyWrite;
44
    use ObjectPropertyRead;
45

46
    /**
47
     * @JMS\Type("ShipAndCoSDK\Requests\Types\Carrier\SettingsPrint")
48
     *
49
     * @var SettingsPrint
50
     */
51
    private $print;
52

53
    /**
54
     * @JMS\Type("ShipAndCoSDK\Requests\Types\Carrier\SettingsLabel")
55
     *
56
     * @var SettingsLabel
57
     */
58
    private $label;
59

60
    /**
61
     * @phan-suppress PhanAccessReadOnlyMagicProperty
62
     */
63
    public function __construct(?SettingsPrint $print = null, ?SettingsLabel $label = null)
64
    {
NEW
65
        $this->print = $print ?? new SettingsPrint();
×
NEW
66
        $this->label = $label ?? new SettingsLabel();
×
67
    }
68
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc