src/Common/BasicAttribute.php 1 location
|
@@ 82-84 (lines=3) @@
|
| 79 |
|
*/ |
| 80 |
|
public function validateLength($length) |
| 81 |
|
{ |
| 82 |
|
if (mb_strlen($this->getValue()) > $length) { |
| 83 |
|
throw new BpostInvalidLengthException($this->getKey(), mb_strlen($this->getValue()), $length); |
| 84 |
|
} |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
/** |
src/Common/ValidatedValue.php 1 location
|
@@ 58-60 (lines=3) @@
|
| 55 |
|
*/ |
| 56 |
|
public function validateLength($length) |
| 57 |
|
{ |
| 58 |
|
if (mb_strlen($this->getValue()) > $length) { |
| 59 |
|
throw new BpostInvalidLengthException('', mb_strlen($this->getValue()), $length); |
| 60 |
|
} |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
/** |