public function searchableBy(string ... $memberExpressions)
    {
        $this->updateOptions(function (ObjectIdentityOptions $options) use ($memberExpressions) {
            if ($options instanceof EntityIdOptions) {
                return $options->withFilterByMemberExpressions($memberExpressions);
            }

            throw InvalidOperationException::methodCall(__METHOD__, 'filtering is only supported on entity sets');
        });

        return $this;
    }
public function searchableBy(string ... $memberExpressions)
    {
        $this->updateOptions(function (ObjectIdentityOptions $options) use ($memberExpressions) {
            if ($options instanceof EntityIdOptions) {
                return $options->withFilterByMemberExpressions($memberExpressions);
            }

            throw InvalidOperationException::methodCall(__METHOD__, 'filtering is only supported on entity sets');
        });

        return $this;
    }
public function searchableBy ( string ... $ memberExpressions ) { $ this -> updateOptions ( function ( ObjectIdentityOptions $ options ) use ( $ memberExpressions ) { if ( $ options instanceof EntityIdOptions ) { return $ options -> withFilterByMemberExpressions ( $ memberExpressions ) ; } throw InvalidOperationException :: methodCall ( __METHOD__ , 'filtering is only supported on entity sets' ) ; } ) ; return $ this ; }
Specifies the member expressions which can be used to filter the options.

Example:
<code>
->searchableBy(Person::NAME, Person::EMAIL)
</code>

@param string[] $memberExpressions

@return static
Specifies the member expressions which can be used to filter the options .