• 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/CreateReservation/Request.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MLocati\Nexi\XPayWeb\Entity\CreateReservation;
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-reservations
17
 */
18
class Request extends Entity
19
{
20
    /**
21
     * Object containing the reservation details.
22
     *
23
     * @optional
24
     *
25
     * @throws \MLocati\Nexi\XPayWeb\Exception\WrongFieldType
26
     */
27
    public function getReservation(): ?\MLocati\Nexi\XPayWeb\Entity\Reservation
28
    {
NEW
29
        return $this->_getEntity('reservation', \MLocati\Nexi\XPayWeb\Entity\Reservation::class);
×
30
    }
31

32
    /**
33
     * @see \MLocati\Nexi\XPayWeb\Entity\CreateReservation\Request::getReservation()
34
     */
35
    public function getOrCreateReservation(): \MLocati\Nexi\XPayWeb\Entity\Reservation
36
    {
37
        $result = $this->getReservation();
×
38
        if ($result === null) {
×
NEW
39
            $this->setReservation($result = new \MLocati\Nexi\XPayWeb\Entity\Reservation());
×
40
        }
41

42
        return $result;
×
43
    }
44

45
    /**
46
     * Object containing the reservation details.
47
     *
48
     * @optional
49
     *
50
     * @return $this
51
     */
52
    public function setReservation(?\MLocati\Nexi\XPayWeb\Entity\Reservation $value): self
53
    {
54
        return $value === null ? $this->_unset('reservation') : $this->_set('reservation', $value);
×
55
    }
56

57
    /**
58
     * {@inheritdoc}
59
     *
60
     * @see \MLocati\Nexi\XPayWeb\Entity::getRequiredFields()
61
     */
62
    protected function getRequiredFields(): array
63
    {
64
        return [
65
        ];
×
66
    }
67
}
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