NinjaMutex\Tests\Mock\MockPDOStatement::_mock_set_fetch PHP Метод

_mock_set_fetch() публичный Метод

public _mock_set_fetch ( string $result ) : MockPDOStatement
$result string
Результат MockPDOStatement
    public function _mock_set_fetch($result)
    {
        $this->_mock_fetch = $result;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * @param  string           $key
  * @return MockPDOStatement
  */
 protected function _mock_release_lock($key)
 {
     if (isset($this->current[$key])) {
         unset(self::$data[$key]);
         unset($this->current[$key]);
         return $this->_mock_pdo_statement->_mock_set_fetch("1");
     }
     return $this->_mock_pdo_statement->_mock_set_fetch("0");
 }
MockPDOStatement