1234567891011121314151617181920 |
- <?php
- namespace Predis\Options;
- class Option implements IOption {
- public function validate($value) {
- return $value;
- }
- public function getDefault() {
- return null;
- }
- public function __invoke($value) {
- if (isset($value)) {
- return $this->validate($value);
- }
- return $this->getDefault();
- }
- }
|