public function validation($subSpec, $value = null)
    {
        $key = "$subSpec";
        if (is_null($value)) {
            if (array_key_exists($key, $this->valid)) {
                return $this->valid[$key];
            } else {
                return;
            }
        }
        $this->valid[$key] = $value;
    }
public function validation($subSpec, $value = null)
    {
        $key = "$subSpec";
        if (is_null($value)) {
            if (array_key_exists($key, $this->valid)) {
                return $this->valid[$key];
            } else {
                return;
            }
        }
        $this->valid[$key] = $value;
    }
public function validation ( $ subSpec , $ value = null ) { $ key = "$subSpec" ; if ( is_null ( $ value ) ) { if ( array_key_exists ( $ key , $ this -> valid ) ) { return $ this -> valid [ $ key ] ; } else { return ; } } $ this -> valid [ $ key ] = $ value ; }
Set or get subspec validation.

@param SubSpecInterface|string $subSpec The validated subspec
@param bool|null               $value   Validation result true or false

@return bool|null If subspec was already validated return true or false.
Returns null, if subspec was not already validated.
Set or get subspec validation .