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

mlocati / PayWay / 5212705470

pending completion
5212705470

push

github

mlocati
Initial version

1803 of 1803 new or added lines in 47 files covered. (100.0%)

1313 of 1803 relevant lines covered (72.82%)

1.53 hits per line

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

0.0
/src/Exception/FieldValueOutOfRange.php
1
<?php
2

3
namespace MLocati\PayWay\Exception;
4

5
use MLocati\PayWay\Exception;
6

7
class FieldValueOutOfRange extends Exception
8
{
9
    /**
10
     * @var string
11
     */
12
    private $fieldName;
13

14
    /**
15
     * @var string[]
16
     */
17
    private $allowedValues;
18

19
    /**
20
     * @param string $fieldName
21
     * @param string[] $allowedValues
22
     */
23
    public function __construct($fieldName, array $allowedValues)
24
    {
25
        $this->fieldName = (string) $fieldName;
×
26
        $this->allowedValues = $allowedValues;
×
27
        parent::__construct("The field {$this->fieldName} contains an invalid value (allowed values are '" . implode("', '", $this->allowedValues) . "')");
×
28
    }
29

30
    /**
31
     * @return string
32
     */
33
    public function getFieldName()
34
    {
35
        return $this->fieldName;
×
36
    }
37

38
    /**
39
     * @return string[]
40
     */
41
    public function getAllowedValues()
42
    {
43
        return $this->allowedValues;
×
44
    }
45
}
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