123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace Predis\Configuration;
- use Predis\Command\Processor\KeyPrefixProcessor;
- use Predis\Command\Processor\CommandProcessorInterface;
- class PrefixOption implements OptionInterface
- {
-
- public function filter(OptionsInterface $options, $value)
- {
- if ($value instanceof CommandProcessorInterface) {
- return $value;
- }
- return new KeyPrefixProcessor($value);
- }
-
- public function getDefault(OptionsInterface $options)
- {
-
- }
- }
|