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