| 1 | <?php |
||
| 9 | final class ScalarEnsurance implements EnsuranceInterface |
||
| 10 | { |
||
| 11 | use EnsuranceTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * ScalarEnsurance constructor. |
||
| 15 | * |
||
| 16 | * @param EnsuranceInterface $ensurance |
||
| 17 | */ |
||
| 18 | public function __construct(EnsuranceInterface $ensurance) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return StringEnsurance |
||
| 25 | */ |
||
| 26 | public function isString(): StringEnsurance |
||
| 32 | |||
| 33 | 26 | /** |
|
| 34 | 26 | * @return NumericEnsurance |
|
| 35 | */ |
||
| 36 | public function isNumeric(): NumericEnsurance |
||
| 42 | |||
| 43 | 12 | /** |
|
| 44 | * @return BooleanEnsurance |
||
| 45 | */ |
||
| 46 | public function isBool(): BooleanEnsurance |
||
| 52 | } |