original_string: private function mainConstruct($key = null, $fail = false)
      {
          $this->getModel();
          $this->getTable();
          $this->columns();
          $this->key();
          if (!is_null($key)) {
              $this->struct($key, $fail);
              $this->_state = CRUD::UPDATE_STAT;
          } else {
              $this->_state = CRUD::CREATE_STAT;
          }
      }
code: private function mainConstruct($key = null, $fail = false)
      {
          $this->getModel();
          $this->getTable();
          $this->columns();
          $this->key();
          if (!is_null($key)) {
              $this->struct($key, $fail);
              $this->_state = CRUD::UPDATE_STAT;
          } else {
              $this->_state = CRUD::CREATE_STAT;
          }
      }
code_tokens: private function mainConstruct ( $ key = null , $ fail = false ) { $ this -> getModel ( ) ; $ this -> getTable ( ) ; $ this -> columns ( ) ; $ this -> key ( ) ; if ( ! is_null ( $ key ) ) { $ this -> struct ( $ key , $ fail ) ; $ this -> _state = CRUD :: UPDATE_STAT ; } else { $ this -> _state = CRUD :: CREATE_STAT ; } }
docstring: the main constructor to search that from database.
  
  @param int  $key
  @param bool $fail
docstring_tokens: the main constructor to search that from database .