src/Sphinx/SphinxClient.php
public function setMatchModeByModeName($modeName)
    {
        $modes = [
            'all'       => 0,
            'any'       => 1,
            'phrase'    => 2,
            'boolean'   => 3,
            'extended'  => 4,
            'fullscan'  => 5,
        ];

        if (array_key_exists($modeName, $modes)) {
            $mode = $modes[$modeName];
            $this->SetMatchMode($mode);
        } else {
            throw new \LogicException('Wrong Mode');
        }
    }
public function setMatchModeByModeName($modeName)
    {
        $modes = [
            'all'       => 0,
            'any'       => 1,
            'phrase'    => 2,
            'boolean'   => 3,
            'extended'  => 4,
            'fullscan'  => 5,
        ];

        if (array_key_exists($modeName, $modes)) {
            $mode = $modes[$modeName];
            $this->SetMatchMode($mode);
        } else {
            throw new \LogicException('Wrong Mode');
        }
    }
Uso amigavel da definicao de Match Mode.

@param string $modeName all|any|phrase|boolean