Sha256: 4a863d2211644174730e01eaaa51c54f228ca01fe66f394969831c3409cf6240

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

<?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();
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appstats-0.25.1 doc/benchmarks/Predis/Options/Option.php
appstats-0.25.0 doc/benchmarks/Predis/Options/Option.php
appstats-0.24.0 doc/benchmarks/Predis/Options/Option.php
appstats-0.23.5 doc/benchmarks/Predis/Options/Option.php
appstats-0.23.4 doc/benchmarks/Predis/Options/Option.php
appstats-0.23.3 doc/benchmarks/Predis/Options/Option.php
appstats-0.23.2 doc/benchmarks/Predis/Options/Option.php