Passed
Push — master ( 018298...b30695 )
by Baptiste
02:53
created

Assertion::notContains()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 15
rs 10
c 0
b 0
f 0
cc 3
nc 2
nop 5
1
<?php declare(strict_types=1);
2
namespace Behapi\Assert;
3
4
use Assert\Assertion as Beberlei;
5
6
/**
7
 * Adds an alias to `noContent`, so that a `not` switch can work on `empty`.
8
 *
9
 * @method static bool allEmpty(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is empty for all values.
10
 * @method static bool nullOrEmpty(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is empty or that the value is null.
11
 */
12
abstract class Assertion extends Beberlei
13
{
14
    public static function empty($value, $message = null, $propertyPath = null)
15
    {
16
        parent::noContent($value, $message, $propertyPath);
17
    }
18
}
19