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

mlocati / nexi-xpay-web / 9096955143

15 May 2024 01:53PM UTC coverage: 5.917%. First build
9096955143

push

github

web-flow
Rename package and namespace (#2)

2 of 63 new or added lines in 24 files covered. (3.17%)

111 of 1876 relevant lines covered (5.92%)

0.51 hits per line

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

0.0
/src/Entity/ListSupportedPaymentMethods/Response.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\ListSupportedPaymentMethods;
6

7
use MLocati\Nexi\XPayWeb\Entity;
8

9
/*
10
 * WARNING: DO NOT EDIT THIS FILE
11
 * It has been generated automaticlly from a template.
12
 * Edit the template instead.
13
 */
14

15
/**
16
 * @see https://developer.nexi.it/en/api/post-payment_methods
17
 */
18
class Response extends Entity
19
{
20
    /**
21
     * Array of objects containing the payment methods enabled on the terminal.
22
     *
23
     * @optional
24
     *
25
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
26
     *
27
     * @return \MLocati\Nexi\XPayWeb\Entity\PaymentMethod[]|null
28
     */
29
    public function getPaymentMethods(): ?array
30
    {
NEW
31
        return $this->_getEntityArray('paymentMethods', \MLocati\Nexi\XPayWeb\Entity\PaymentMethod::class);
×
32
    }
33

34
    /**
35
     * Array of objects containing the payment methods enabled on the terminal.
36
     *
37
     * @param \MLocati\Nexi\XPayWeb\Entity\PaymentMethod[]|null $value
38
     *
39
     * @optional
40
     *
41
     * @return $this
42
     */
43
    public function setPaymentMethods(?array $value): self
44
    {
NEW
45
        return $value === null ? $this->_unset('paymentMethods') : $this->_setEntityArray('paymentMethods', \MLocati\Nexi\XPayWeb\Entity\PaymentMethod::class, $value);
×
46
    }
47

48
    /**
49
     * {@inheritdoc}
50
     *
51
     * @see \MLocati\Nexi\XPayWeb\Entity::getRequiredFields()
52
     */
53
    protected function getRequiredFields(): array
54
    {
55
        return [
56
        ];
×
57
    }
58
}
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

© 2025 Coveralls, Inc