protected function setValid($valid)
    {
        if (!isset($this->valid) || true === $this->valid) {
            $this->valid = $valid;
        }

        return $this;
    }
protected function setValid($valid)
    {
        if (!isset($this->valid) || true === $this->valid) {
            $this->valid = $valid;
        }

        return $this;
    }
protected function setValid ( $ valid ) { if ( ! isset ( $ this -> valid ) || true === $ this -> valid ) { $ this -> valid = $ valid ; } return $ this ; }
Sets the value of valid.

@param mixed $valid the valid

@return self
Sets the value of valid .