Option::reject( mixed $value )

If the option is empty, it is returned immediately.


Description

If the option is non-empty, and its value does equal the passed value (via a shallow comparison ===), then None is returned; otherwise, the Option is returned.

In other words, this will let all values through except the passed value.


Parameters

$value

(Required)


Return

(PhpOptionOption)


Source

File: vendor/phpoption/phpoption/src/PhpOption/Option.php

    abstract public function reject($value);