public function setExpectedResult($expected = Table::RETURN_MODEL,
            $checkNotSet = false) {
        if (!$checkNotSet || ($checkNotSet && is_null($this->expected)))
                $this->expected = $expected;
        return $this;
    }
public function setExpectedResult($expected = Table::RETURN_MODEL,
            $checkNotSet = false) {
        if (!$checkNotSet || ($checkNotSet && is_null($this->expected)))
                $this->expected = $expected;
        return $this;
    }
public function setExpectedResult ( $ expected = Table :: RETURN_MODEL , $ checkNotSet = false ) { if ( ! $ checkNotSet || ( $ checkNotSet && is_null ( $ this -> expected ) ) ) $ this -> expected = $ expected ; return $ this ; }
Sets the type of result expected
@param int $expected One of \DBScribe\Table::RETURN_DEFAULT,
\DBScribe\Table::RETURN_MODEL or \DBScribe\Table::RETURN_JSON
@param bool $checkNotSet Only set if not already
@return Table
Sets the type of result expected