Option::select( mixed $value )

If the option is empty, it is returned immediately.


Description

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

In other words, this will filter all but the passed value.


Parameters

$value

(Required)


Return

(PhpOptionOption)


Source

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

    abstract public function select($value);