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

mlocati / PayWay / 5213927880

pending completion
5213927880

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/FieldValueTooLong.php
1
<?php
2

3
namespace MLocati\PayWay\Exception;
4

5
use MLocati\PayWay\Exception;
6

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

14
    /**
15
     * @var int
16
     */
17
    private $maxLength;
18

19
    /**
20
     * @param string $fieldName
21
     */
22
    public function __construct($fieldName, $maxLength)
23
    {
24
        $this->fieldName = (string) $fieldName;
×
25
        $this->maxLength = (int) $maxLength;
×
26
        parent::__construct("The value of the field {$this->fieldName} is too long (max: {$this->maxLength} characters)");
×
27
    }
28

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

37
    /**
38
     * @return int
39
     */
40
    public function getMaxLength()
41
    {
42
        return $this->maxLength;
×
43
    }
44
}
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